Skip to content

v2.1.0

v2.1.0 #5

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Lint
run: npm run lint
- name: Format check
run: npm run format:check
- name: Build
run: npm run build
- name: Test
run: npx vitest --run
publish:
needs: ci
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
cache: npm
- run: npm ci
- name: Build
run: npm run build
- name: Sync version from release tag
run: npm pkg set version="${GITHUB_REF_NAME#v}"
- name: Publish to npm
run: npm publish --provenance --access public