Skip to content

v1.0.0

v1.0.0 #1

Workflow file for this run

name: npm-publish
on:
workflow_dispatch:
push:
branches:
- 'main'
- 'master'
paths:
- 'package.json'
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.head_commit.message, 'v')
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'latest'
registry-url: 'https://registry.npmjs.org'
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}