Skip to content

chore: add package-lock.json for CI #2

chore: add package-lock.json for CI

chore: add package-lock.json for CI #2

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
release:
name: Publish to npm
runs-on: ubuntu-latest
environment: npm
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
cache: npm
- run: npm ci --ignore-scripts
- run: npm audit --audit-level=high
- run: npm test
- run: npm run build
- run: npm publish --provenance --access public
working-directory: dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" \
--title "${{ github.ref_name }}" \
--generate-notes