File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ jobs:
31
31
- name : Build
32
32
if : ${{ steps.release.outputs.release_created }}
33
33
run : npm run build
34
- - name : Publish to NPM
34
+ - uses : JS-DevTools/npm-publish@v3
35
+ with :
36
+ token : ${{ secrets.NPM_ACCESS_TOKEN }}
37
+ id : publish
35
38
if : ${{ steps.release.outputs.release_created }}
36
- run : npm publish --dry-run
37
- env :
38
- NODE_AUTH_TOKEN : ${{ secrets.NPM_ACCESS_TOKEN }}
39
39
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#creating-majorminor-tags
40
40
- name : Tag versions
41
- if : ${{ steps.release.outputs.release_created }}
41
+ if : ${{ steps.release.outputs.release_created && steps.publish.outputs.type }}
42
42
run : |
43
43
git config user.name github-actions[bot]
44
44
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
You can’t perform that action at this time.
0 commit comments