Skip to content

v4.0.0

v4.0.0 #3

Workflow file for this run

name: Publish Release
on:
workflow_dispatch:
release:
types:
- published
permissions:
contents: read
jobs:
publish-npm:
name: Publish to NPM
runs-on: ubuntu-latest
environment: release
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Publish release to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}