Skip to content

Commit 8576d64

Browse files
committed
feat: update workflows
1 parent 3136523 commit 8576d64

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,25 @@ jobs:
1717
with:
1818
node-version: 18
1919

20-
- name: Install pnpm and dependencies
20+
- name: Install pnpm
2121
uses: pnpm/action-setup@v4
2222
with:
2323
version: 9
2424
run_install: false
2525

26+
- name: Cache pnpm modules
27+
uses: actions/cache@v3
28+
with:
29+
path: |
30+
.pnpm-store
31+
node_modules
32+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
33+
restore-keys: |
34+
${{ runner.os }}-pnpm-
35+
36+
- name: Install dependencies
37+
run: pnpm install
38+
2639
- name: Publish
2740
env:
2841
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)