Skip to content

3.0.0

3.0.0 #11

Workflow file for this run

name: Publish
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Publish package to JSR
run: deno publish
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
- run: deno run build
- name: Publish package to NPM
run: cd npm && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}