Skip to content

publish pre-releases as beta to npmjs #12

publish pre-releases as beta to npmjs

publish pre-releases as beta to npmjs #12

Workflow file for this run

name: publish pre-releases as beta to npmjs
on:
release:
types: [prereleased]
jobs:
publish-as-beta:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
registry-url: https://registry.npmjs.org
- run: npm clean-install
- run: npm publish --provenance --access public --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}