Skip to content

Commit dc877e6

Browse files
committed
chore(core): sets up pnpm in gh action rather than npm
1 parent d47b605 commit dc877e6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,19 @@ jobs:
3232
registry-url: 'https://registry.npmjs.org'
3333
if: ${{ steps.release.outputs.release_created }}
3434

35-
- run: npm ci
35+
# Setup pnpm
36+
- uses: pnpm/action-setup@v2
37+
with:
38+
version: latest
39+
run_install: false
40+
if: ${{ steps.release.outputs.release_created }}
41+
42+
- name: Install dependencies
43+
run: pnpm install --frozen-lockfile
3644
if: ${{ steps.release.outputs.release_created }}
3745

38-
- run: npm publish --provenance
46+
- name: Publish to npm
47+
run: pnpm publish --no-git-checks --provenance
3948
env:
4049
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4150
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)