Skip to content

Fix deno tests

Fix deno tests #108

# .github/release.yml
name: Release on npm (canary)
on:
push:
branches:
- "main"
paths:
- "src/**"
- ".github/workflows/release-canary.yml"
jobs:
build_and_publish:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
yarn install
- name: Build
run: |
yarn clean
yarn build
- name: Set version
run: |
npm --no-git-tag-version version minor
npm --no-git-tag-version version $(npm pkg get version | sed 's/"//g')-canary.$(date +'%Y%m%dT%H%M%S')
- id: publish
name: Publish to NPM
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
dry-run: false
tag: canary
provenance: true