✨ add terminal input parser #5
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| verify-jsr: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: setup deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: build wasm | |
| run: make | |
| - name: Get Version | |
| id: vars | |
| run: echo ::set-output name=version::$(echo ${{github.ref_name}} | sed 's/^v//') | |
| - name: Build JSR | |
| run: deno task build:jsr ${{steps.vars.outputs.version}} | |
| - name: dry run publish | |
| run: deno publish --dry-run --allow-dirty | |
| verify-npm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: setup deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: build wasm | |
| run: make | |
| - name: Get Version | |
| id: vars | |
| run: echo ::set-output name=version::$(echo ${{github.ref_name}} | sed 's/^v//') | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Build NPM | |
| run: deno task build:npm ${{steps.vars.outputs.version}} | |
| - name: dry run publish | |
| run: npm publish --dry-run --tag=verify | |
| working-directory: ./build/npm | |
| - name: upload build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: npm-build | |
| path: ./build/npm | |
| publish-npm: | |
| needs: [verify-jsr, verify-npm] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: download build | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: npm-build | |
| path: ./build/npm | |
| - name: Publish NPM | |
| run: npm publish --access=public --tag=latest | |
| working-directory: ./build/npm | |
| publish-jsr: | |
| needs: [verify-jsr, verify-npm] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: setup deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: build wasm | |
| run: make | |
| - name: Get Version | |
| id: vars | |
| run: echo ::set-output name=version::$(echo ${{github.ref_name}} | sed 's/^v//') | |
| - name: Build JSR | |
| run: deno task build:jsr ${{steps.vars.outputs.version}} | |
| - name: Publish JSR | |
| run: deno publish --allow-dirty --token=${{ secrets.JSR_TOKEN }} |