Skip to content

Commit

Permalink
publish to npm as well as release page on release
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville committed Jan 8, 2025
1 parent 8b60008 commit b1c4186
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,27 @@ jobs:

do_release:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- name: Build library
run: |
npm install
npm run build
- name: Publish to npmjs
if: startsWith(github.ref, 'refs/tags')
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Pack library
run: |
npm pack
echo "NPM_TGZ=$(ls jsfive*.tgz)" >> $GITHUB_ENV
- name: Upload artifact
Expand Down

0 comments on commit b1c4186

Please sign in to comment.