Skip to content

Commit

Permalink
Rework publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenyeargin committed Nov 23, 2023
1 parent eaac832 commit 0c1142c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:

name: npm-publish

permissions:
contents: write

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -12,8 +15,15 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: npm whoami
- run: npm ci
- run: npm test
- uses: JS-DevTools/npm-publish@v3
id: publish
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
- if: ${{ steps.publish.outputs.type }}
name: Create Release
run: |
VERSION="v${{ steps.publish.outputs.version }}"
gh release create $VERSION --generate-notes

0 comments on commit 0c1142c

Please sign in to comment.