Skip to content

Rework (3.x) (#13)

Rework (3.x) (#13) #6

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@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}