Skip to content

0.10.2

0.10.2 #4

Workflow file for this run

name: Publish Package
on:
push:
tags: [ v*.*.* ]
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: npm
registry-url: https://registry.npmjs.org
- name: Check version
run: jq -e '.version as $v | "${{ github.ref }}" | endswith("/v" + $v)' package.json
- run: npm ci
- run: npm run build
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-jsr:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: npm
- name: Check version
run: jq -e '.version as $v | "${{ github.ref }}" | endswith("/v" + $v)' jsr.json
- run: npm ci
- run: npx jsr publish