Skip to content

Commit

Permalink
feat: Add NPM publish after release is created
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed Apr 18, 2023
1 parent cc12c74 commit 2979a11
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release-please.yml
Expand Up @@ -23,9 +23,10 @@ jobs:
token: ${{ secrets.RELEASE_PLEASE_PAT }}

- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "16.x" # You might need to adjust this value to your own version
node-version: "16.x"
registry-url: 'https://registry.npmjs.org'

- name: Upload release assets
if: ${{ steps.release-please.outputs.release_created }}
Expand All @@ -48,4 +49,8 @@ jobs:
NEW_TAG="${TAG#v}"
gh release edit $TAG -t $NEW_TAG
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to NPM
run: npm publish -w @markdown-confluence/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 comments on commit 2979a11

Please sign in to comment.