Skip to content

Commit 03c914c

Browse files
committed
Publish to npm before GitHub to avoid mismatch
1 parent 0c3de66 commit 03c914c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ jobs:
5757
branch: main
5858
unprotect_reviews: true
5959

60+
- name: Update npm
61+
run: npm install -g npm@latest
62+
63+
- name: Publish to NPM public repository
64+
run: npm publish
65+
6066
- name: Push changes to repository
6167
run: git push origin && git push --tags
6268

@@ -67,12 +73,6 @@ jobs:
6773
body: ${{ steps.release-changelog.outputs.content }}
6874
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
6975

70-
- name: Update npm
71-
run: npm install -g npm@latest
72-
73-
- name: Publish to NPM public repository
74-
run: npm publish
75-
7676
- name: Trigger documentation deploy
7777
uses: peter-evans/repository-dispatch@v2
7878
with:

0 commit comments

Comments
 (0)