Skip to content

chore: release v1.0.0-beta.33 #679

chore: release v1.0.0-beta.33

chore: release v1.0.0-beta.33 #679

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
id-token: write
jobs:
release:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: lts/*
cache: pnpm
registry-url: https://registry.npmjs.org
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm i
- run: pnpm dev:prepare
- run: pnpm build
- name: Detect prerelease tag
id: prerelease
run: |
TAG="${GITHUB_REF#refs/tags/}"
if [[ "$TAG" =~ -(beta|rc|alpha) ]]; then
DIST_TAG=$(echo "$TAG" | sed 's/.*-\(beta\|rc\|alpha\).*/\1/')
echo "tag=--tag $DIST_TAG" >> "$GITHUB_OUTPUT"
else
echo "tag=" >> "$GITHUB_OUTPUT"
fi
- run: pnpm publish -r --access public --no-git-checks --provenance ${{ steps.prerelease.outputs.tag }}