Skip to content

Commit 4be68f7

Browse files
committed
feat: add reusable CI workflows for building and E2E testing.
1 parent 42eaa5e commit 4be68f7

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/pr-ci-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Upload build artifacts
5353
uses: actions/upload-artifact@v4
5454
with:
55-
name: build-${{ github.sha }}
55+
name: build-${{ github.event.pull_request.head.sha || github.sha }}
5656
path: |
5757
packages/components/dist
5858
packages/kit/dist

.github/workflows/pr-ci-e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Download build artifacts
3939
uses: actions/download-artifact@v4
4040
with:
41-
name: build-${{ github.sha }}
41+
name: build-${{ github.event.pull_request.head.sha || github.sha }}
4242
path: .
4343

4444
- name: Install Playwright Browser

.github/workflows/pr-ci-publish-packages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
- name: Download build artifacts
4444
uses: actions/download-artifact@v4
4545
with:
46-
name: build-${{ github.sha }}
47-
path: packages
46+
name: build-${{ github.event.pull_request.head.sha || github.sha }}
47+
path: .
4848

4949
- name: Publish to pkg.pr.new
5050
id: pkg-pr-new
@@ -66,7 +66,7 @@ jobs:
6666
- name: Upload pkg.pr.new output
6767
uses: actions/upload-artifact@v4
6868
with:
69-
name: pkg-pr-new-output-${{ github.sha }}
69+
name: pkg-pr-new-output-${{ github.event.pull_request.head.sha || github.sha }}
7070
path: pkg-pr-new-output.json
7171
retention-days: 1
7272
if-no-files-found: ignore

.github/workflows/pr-cleanup.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: 'CI: Docs Cleanup'
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [closed]
66

7+
permissions:
8+
pull-requests: write
9+
710
jobs:
811
cleanup:
912
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)