Skip to content

publish

publish #2

Workflow file for this run

name: publish
on:
release:
types: [published]
# support manual release in case something goes wrong and needs to be repeated or tested
workflow_dispatch:
inputs:
tag:
description: tag that needs to publish
type: string
required: true
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm update -g npm
- run: npm install
- run: npm run build
- run: npm run prepack
- run: npm publish --access public
- run: npm run postpack