Skip to content

v2.0.1

v2.0.1 #2

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
npmjs:
name: Publish package to npm
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}