0.7.3 #1
Workflow file for this run
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: Publish release | |
on: | |
release: | |
types: [created] | |
workflow_dispatch: | |
jobs: | |
publish-jsr: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 | |
- run: npm install -g jsr | |
- run: jsr publish | |
publish-npm: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 | |
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 | |
with: | |
node-version: 20 | |
registry-url: 'https://registry.npmjs.org' | |
cache: npm | |
- run: npm ci | |
- run: npm run build | |
- run: npm publish --provenance --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
standalone: | |
name: Upload standalone file to GitHub Releases | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 | |
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 | |
with: | |
node-version: 20 | |
registry-url: 'https://registry.npmjs.org' | |
cache: npm | |
- run: npm ci | |
- run: npm run build | |
- run: | | |
cd build | |
npm ci | |
npm run build:release | |
cd .. | |
- run: gh release upload ${{ github.event.release.tag_name }} build/`npx jsbt outfile` | |
env: | |
GH_TOKEN: ${{ github.token }} |