Skip to content

Commit 70a4955

Browse files
authored
Update publish.yml
1 parent 957a723 commit 70a4955

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,23 @@ jobs:
3333
- run: yarn install
3434
- run: yarn test
3535

36-
- uses: JS-DevTools/npm-publish@v3
36+
- name: Publish Latest
37+
uses: JS-DevTools/npm-publish@v3
3738
if: ${{ !github.event.release.prerelease && !steps.version.outputs.prerelease }}
3839
with:
3940
token: ${{ secrets.NPM_TOKEN }}
4041
access: public
4142
dry-run: true
4243

44+
- name: Publish Prelease
45+
uses: JS-DevTools/npm-publish@v3
46+
if: ${{ steps.version.outputs.prerelease }}
47+
with:
48+
token: ${{ secrets.NPM_TOKEN }}
49+
access: public
50+
dry-run: true
51+
tag: ${{ steps.version.outputs.prerelease }}
52+
4353
- name: Upload npm debug log
4454
if: failure() # This step will run only if the previous steps failed
4555
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)