Skip to content

chore(release): v2.0.0 #1

chore(release): v2.0.0

chore(release): v2.0.0 #1

Workflow file for this run

name: publish
on:
workflow_dispatch:
push:
tags:
- "v[0-9]*"
jobs:
build:
uses: ./.github/workflows/build.yml
publish:
needs: [build]
environment: publish
permissions:
contents: write # release
id-token: write # provenance
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- uses: actions/download-artifact@v4
with:
artifact-ids: ${{ needs.build.outputs.artifact-id }}
path: ./
- run: npm publish --provenance --access public ./artifacts/package.tgz
- run: gh release create --verify-tag "v$(jq -r .version package.json)"
env:
GH_TOKEN: ${{ github.token }}