update README.md #15
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: Build | |
on: | |
push: | |
branches: ['*'] | |
pull_request: | |
permissions: {} | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v21 | |
- name: Extract Tag | |
id: extract_tag | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const prefix = 'refs/tags/v'; | |
const ref = context.ref; | |
return ref.startsWith(prefix) ? ref.substring(prefix.length) : ''; | |
result-encoding: string | |
- name: Lint | |
run: nix develop --command make lint | |
- name: Check Format | |
run: nix develop --command make fmt-check | |
- name: Run Tests | |
run: nix develop --command make test | |
- name: Publish to JSR | |
run: nix develop --command deno publish |