Release #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
release: | |
types: | |
- published | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci --fund=false --audit=false | |
- run: npm run build | |
#- run: npm version prerelease --no-git-tag-version --preid ${{ github.ref_name }}-${{ github.sha }} (using self-versioned package.json from now on) | |
#### PUBLISH TO NPM #### | |
- uses: JS-DevTools/npm-publish@v3 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
access: public | |
tag: latest | |
provenance: true | |
#### PUBLISH TO GITHUB NPM #### | |
- uses: JS-DevTools/npm-publish@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
registry: https://npm.pkg.github.com | |
access: public | |
tag: beta | |
provenance: true |