This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
JSR Publish #47
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: JSR Publish | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish: | |
name: Publish Package | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
strategy: | |
fail-fast: false | |
matrix: | |
package: | |
- 'app-server-sdk' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update version in JSR | |
working-directory: packages/${{ matrix.package }} | |
run: | | |
jq '.version = "${{ github.event.release.tag_name }}"' jsr.json > jsr.json.tmp | |
mv jsr.json.tmp jsr.json | |
- name: Publish package | |
working-directory: packages/${{ matrix.package }} | |
run: npx jsr publish --allow-dirty |