Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

Commit cbb7df6

Browse files
committed
chore: add release action
1 parent 48f0fe4 commit cbb7df6

2 files changed

Lines changed: 56 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Release
4+
5+
on:
6+
push:
7+
tags:
8+
- "v*"
9+
workflow_dispatch:
10+
inputs:
11+
specific_tag:
12+
description: 'Specific tag to release'
13+
required: false
14+
default: ''
15+
jobs:
16+
release:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
id-token: write
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Install pnpm
27+
uses: pnpm/action-setup@v4
28+
with:
29+
run_install: true
30+
31+
# after pnpm
32+
- name: Use Node.js LTS
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: '>=22.6.0'
36+
registry-url: https://registry.npmjs.org/
37+
cache: pnpm
38+
39+
- name: Build
40+
run: pnpm build
41+
42+
- name: Release current monorepo
43+
uses: galacean/publish@main
44+
with:
45+
specific_tag: ${{ inputs.specific_tag }}
46+
publish: false
47+
packages: |
48+
./
49+
env:
50+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
51+
NPM_CONFIG_PROVENANCE: true
52+
OASISBE_UPLOAD_URL: https://oasisbe.alipay.com/api/file/no-auth/crypto/upload
53+
OASISBE_REQUEST_HEADER: ${{secrets.OASISBE_REQUEST_HEADER}}
54+
OASISBE_PUBLIC_KEY: ${{secrets.OASISBE_PUBLIC_KEY}}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@
6161
"lint": "eslint src --fix --ext .ts,.tsx",
6262
"b:types": "tsc --emitDeclarationOnly"
6363
},
64-
"types": "types/index.d.ts"
64+
"types": "types/index.d.ts",
65+
"packageManager": "pnpm@9.3.0"
6566
}

0 commit comments

Comments
 (0)