Skip to content

Commit 651f27d

Browse files
Unify steps
1 parent efd97f3 commit 651f27d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish_to_npm.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ jobs:
2323
- name: Verify version
2424
run: echo ${{ github.event.release.tag_name }}
2525

26-
- name: Setup NPM
27-
run: echo "//registry.npmjs.org/:_authToken=\${{ secrets.NPM_TOKEN }}" > ~/.npmrc
28-
2926
- run: pnpm install
3027
- run: pnpm run build
31-
- run: pnpm publish --access public --no-git-checks
28+
29+
- name: Publish to NPM
30+
run: |
31+
echo "//registry.npmjs.org/:_authToken=\${{ secrets.NPM_TOKEN }}" > .npmrc
32+
pnpm publish --access public --no-git-checks

0 commit comments

Comments
 (0)