Skip to content

Commit 51528f7

Browse files
Copilothuangyiirene
andcommitted
fix: pin action versions and improve workflow consistency
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
1 parent 01fd78c commit 51528f7

File tree

3 files changed

+16
-30
lines changed

3 files changed

+16
-30
lines changed

.github/workflows/pr-automation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Add size label
16-
uses: codelytv/pr-size-labeler@v1
16+
uses: codelytv/pr-size-labeler@v1.10.1
1717
with:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1919
xs_label: 'size/xs'
@@ -41,7 +41,7 @@ jobs:
4141
uses: actions/checkout@v4
4242

4343
- name: Label based on changed files
44-
uses: actions/labeler@v5
44+
uses: actions/labeler@v5.0.0
4545
with:
4646
repo-token: ${{ secrets.GITHUB_TOKEN }}
4747
configuration-path: .github/labeler.yml

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Close stale issues and PRs
19-
uses: actions/stale@v9
19+
uses: actions/stale@v9.0.0
2020
with:
2121
repo-token: ${{ secrets.GITHUB_TOKEN }}
2222

.github/workflows/validate-deps.yml

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ jobs:
3232
with:
3333
version: 10.28.0
3434

35+
- name: Get pnpm store directory
36+
shell: bash
37+
run: |
38+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
39+
40+
- name: Setup pnpm cache
41+
uses: actions/cache@v4
42+
with:
43+
path: ${{ env.STORE_PATH }}
44+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
45+
restore-keys: |
46+
${{ runner.os }}-pnpm-store-
47+
3548
- name: Verify lockfile is up to date
3649
run: |
3750
pnpm install --frozen-lockfile --prefer-offline
@@ -44,30 +57,3 @@ jobs:
4457
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
4558
run: |
4659
pnpm outdated --recursive || true
47-
48-
license-check:
49-
name: Check License Compatibility
50-
runs-on: ubuntu-latest
51-
permissions:
52-
contents: read
53-
54-
steps:
55-
- name: Checkout repository
56-
uses: actions/checkout@v4
57-
58-
- name: Setup Node.js
59-
uses: actions/setup-node@v4
60-
with:
61-
node-version: '20'
62-
63-
- name: Install pnpm
64-
uses: pnpm/action-setup@v4
65-
with:
66-
version: 10.28.0
67-
68-
- name: Install dependencies
69-
run: pnpm install --frozen-lockfile
70-
71-
- name: Check licenses
72-
run: |
73-
npx license-checker --summary --exclude "MIT,Apache-2.0,ISC,BSD-2-Clause,BSD-3-Clause,0BSD,CC0-1.0,Unlicense" || true

0 commit comments

Comments
 (0)