forked from systemfsoftware/systemfsoftware
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.19 KB
/
Copy pathrelease.yml
File metadata and controls
48 lines (43 loc) · 1.19 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
name: Release
on:
push:
branches: [main]
concurrency: release-${{ github.ref }}
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
jobs:
checks:
name: build · lint · typecheck · test
uses: ./.github/workflows/reusable-checks.yml
semantic-release:
name: Semantic Release
needs: [checks]
runs-on: ubuntu-latest
env:
HUSKY: 0
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Configure git user
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- uses: ./.github/actions/install-deps
- run: corepack pnpm build
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: corepack pnpm release
- name: Capture dirty tree diff on failure
if: failure()
run: git diff --patch --stat HEAD > /tmp/dirty-tree.patch
- uses: actions/upload-artifact@v7
if: failure()
with:
name: dirty-tree-diff-${{ github.run_id }}
path: /tmp/dirty-tree.patch
retention-days: 7