Skip to content

chore(release): release v1.0.0-alpha.8 #10

chore(release): release v1.0.0-alpha.8

chore(release): release v1.0.0-alpha.8 #10

Workflow file for this run

name: 🍰 Release
on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*-alpha.*'
- 'v*.*.*-beta.*'
- 'v*.*.*-rc.*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
TURBO_TELEMETRY_DISABLED: '1'
jobs:
release-npm:
if: github.repository == 'dream-num/univer'
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v7
with:
ref: ${{ github.ref_name }}
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 24.3.0
registry-url: https://registry.npmjs.org
- name: 🚚 Install dependencies and build
run: |
pnpm install --frozen-lockfile
pnpm build
- name: 🐙 Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
REF_NAME: ${{ github.ref_name }}
run: |
if [[ "$REF_NAME" =~ -(alpha|beta|rc)\. ]]; then
pnpm publish --access public --tag "${BASH_REMATCH[1]}" -r --no-git-checks
else
pnpm publish --access public -r --no-git-checks
fi