Skip to content

Release v1.1.2

Release v1.1.2 #19

Workflow file for this run

name: Release
on:
push:
tags: v*
permissions:
contents: write
id-token: write
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set-up Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Set-up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: Build npm package
run: deno task build:npm
- name: Generate release notes
uses: actions/github-script@v7
with:
script: |
const tag = context.ref.split('/').at(-1);
github.rest.repos.createRelease({
name: `Release ${tag}`,
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: tag,
generate_release_notes: true
})
- name: Publish to JSR
run: npx jsr publish
- name: Publish to npm
run: cd npm && npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}