Skip to content

Commit 4dc90fe

Browse files
authored
Add step to update npm in publish workflow
Added step to update npm to the latest version before installing dependencies.
1 parent 6787a48 commit 4dc90fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
cache: 'pnpm'
2525
registry-url: "https://registry.npmjs.org"
2626

27+
- name: Update npm
28+
run: npm install -g npm@latest
29+
2730
- name: Install dependencies
2831
run: pnpm install
2932

@@ -33,5 +36,4 @@ jobs:
3336
- name: Publish packages
3437
run: pnpm -r publish --no-git-checks --access public
3538
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3739
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)