Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mclintprojects committed Aug 17, 2024
1 parent a130e12 commit 584078c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node: "20.x"
node-version: "20"

- name: Bump package version
run: |
Expand All @@ -18,11 +18,13 @@ jobs:
npm version patch
- name: Push updated package to NPM
- name: Push updated package + tag to GitHub
run: git push -f && git push --tags -f
env:
GITHUB_TOKEN: ${{ secrets.PUSH_GITHUB_TOKEN }}

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish package to NPM
uses: JS-DevTools/npm-publish@v3
with:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 584078c

Please sign in to comment.