-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.28 KB
/
Copy pathrelease.yml
File metadata and controls
55 lines (45 loc) · 1.28 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
name: Release Project
on:
workflow_run:
workflows: [ "Detect Deps" ]
types:
- completed
workflow_dispatch:
permissions:
contents: write
id-token: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ github.ref }}
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
version: 11.9.0
- name: Install Node
uses: actions/setup-node@v7
with:
node-version: 24.14.1
registry-url: https://registry.npmjs.org/
package-manager-cache: false
- name: Set Git Identity
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Install deps
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Release
run: pnpm exec release --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}