Skip to content

Release

Release #7

Workflow file for this run

name: Release
on:
workflow_dispatch:
permissions:
id-token: write
jobs:
publish:
name: Publish package to NPM
runs-on: ubuntu-latest
environment: release
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
registry-url: https://registry.npmjs.org
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true