Skip to content

Commit 1fd1ef2

Browse files
committed
Use pnpm
1 parent 6561529 commit 1fd1ef2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,20 @@ jobs:
1010
publish-npm:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v2
13+
- uses: actions/checkout@v4
14+
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v3
17+
with:
18+
version: latest
19+
20+
- uses: actions/setup-node@v4
1521
with:
1622
node-version: 'lts/*'
1723
registry-url: https://registry.npmjs.org/
18-
- run: npm ci
24+
cache: 'pnpm'
25+
26+
- run: pnpm i
1927
- run: npm publish --access public
2028
env:
2129
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)