Skip to content

Commit 5df0b34

Browse files
committed
ci: publish major version as dist tag as well
1 parent 5112d6e commit 5df0b34

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release-please.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ jobs:
2626
if: ${{ steps.release.outputs.release_created }}
2727
- run: npm ci
2828
if: ${{ steps.release.outputs.release_created }}
29-
- run: npm publish
29+
- name: Publish to NPM
30+
run: npm publish
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
33+
if: ${{ steps.release.outputs.release_created }}
34+
- name: Publish major version dist tag to NPM
35+
run: npm publish --tag ${{ steps.release.outputs.major }}
3036
env:
3137
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3238
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)