Skip to content

Set up JSR publishing (#21) #1

Set up JSR publishing (#21)

Set up JSR publishing (#21) #1

Workflow file for this run

name: Publish
on:
push:
branches:
- main
paths:
- jsr.json
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: denoland/setup-deno@v1
- uses: actions/checkout@v4
- name: Check publish rules
run: |
mv deps.ts deps_https.ts
mv deps_jsr.ts deps.ts
undo () {
ARG=$?
mv deps.ts deps_jsr.ts
mv deps_https.ts deps.ts
exit $ARG
}
trap undo EXIT
deno publish --allow-dirty