Skip to content

build: bump version to 2.0.0-alpha.1 #3

build: bump version to 2.0.0-alpha.1

build: bump version to 2.0.0-alpha.1 #3

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v*'
permissions:
id-token: write # for npm authentication
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run build
- name: Publish stable version
if: contains(github.ref, 'alpha') == false
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish alpha version
if: contains(github.ref, 'alpha') == true
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_TAG: alpha