-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (30 loc) · 877 Bytes
/
release.yml
File metadata and controls
39 lines (30 loc) · 877 Bytes
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
name: 'release'
on:
release:
types: [created]
workflow_dispatch:
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Git identity
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.13.1
- name: Install deps
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Add build artifacts
run: git add dist -f