Skip to content

chore: disable auto beta release workflow #21

chore: disable auto beta release workflow

chore: disable auto beta release workflow #21

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Ensure npm version supports Trusted Publishing
run: npm i -g npm@11
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Select npm tag
id: tag
run: |
TAG=${GITHUB_REF#refs/tags/}
if [[ "$TAG" == *beta* ]]; then
echo "npm_tag=beta" >> "$GITHUB_OUTPUT"
else
echo "npm_tag=latest" >> "$GITHUB_OUTPUT"
fi
- name: Publish to npm (Trusted Publishing)
run: npm publish --tag ${{ steps.tag.outputs.npm_tag }} --access public