Bump version to 0.4.2 #9
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: "Git ref (tag or commit SHA) to build from" | |
| required: true | |
| default: "master" | |
| permissions: | |
| contents: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event.inputs.ref || github.ref }} | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Pack npm tarball | |
| id: pack | |
| run: | | |
| file=$(npm pack --ignore-scripts --silent) | |
| echo "file=$file" >> "$GITHUB_OUTPUT" | |
| - name: Create GitHub Release with tarball | |
| if: startsWith(github.ref, 'refs/tags/') | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh release create "$GITHUB_REF_NAME" "${{ steps.pack.outputs.file }}" --notes "" |