-
Notifications
You must be signed in to change notification settings - Fork 11
62 lines (53 loc) · 1.54 KB
/
release.yml
File metadata and controls
62 lines (53 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release
on:
workflow_dispatch:
inputs:
mode:
description: Release mode to run
required: true
type: choice
options:
- stable
- rc
- canary
permissions:
contents: write
id-token: write
concurrency:
group: release-${{ github.event.inputs.mode }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
release:
name: Run release
runs-on: ubuntu-latest
timeout-minutes: 20
env:
RELEASE_MODE: ${{ github.event.inputs.mode }}
RELEASE_REF: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
GIT_AUTHOR_NAME: actions-bot
GIT_AUTHOR_EMAIL: actions-bot@users.noreply.github.com
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Configure git identity
run: |
git config user.name "$GIT_AUTHOR_NAME"
git config user.email "$GIT_AUTHOR_EMAIL"
- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
with:
version: 10.6.1
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 24.10.0
cache: pnpm
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run release
run: pnpm release:run