Skip to content

v2.45.21-rc.1

v2.45.21-rc.1 #10

Workflow file for this run

name: npm publish
on:
release:
types: published
workflow_dispatch:
inputs:
tag:
required: true
type: choice
options: [latest, next]
default: latest
concurrency: ${{ github.workflow }}
jobs:
npm-publish:
permissions:
id-token: write
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: npm
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish --provenance --tag "$TAG"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG: ${{ inputs.tag || ((github.event.release.prerelease && 'next') || 'latest') }}