Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Commit ab50748

Browse files
committed
fix(workflow): restructure build jobs to separate lint and test steps, update dependencies for publish
1 parent 49894ae commit ab50748

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,22 @@ on:
1313
type: string
1414

1515
jobs:
16-
build:
17-
runs-on: ${{ matrix.os }}
16+
lint:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
20+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
21+
with:
22+
node-version: 20
23+
- run: npm ci
24+
- run: npm run jake lint
1825

26+
test:
27+
runs-on: ${{ matrix.os }}
1928
strategy:
2029
matrix:
2130
os: [ubuntu-latest, macos-latest, windows-latest]
2231
node-version: [20, 22, 24, 25]
23-
2432
steps:
2533
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2634
- name: Use Node.js ${{ matrix.node-version }}
@@ -32,7 +40,7 @@ jobs:
3240

3341
publish:
3442
runs-on: ubuntu-24.04
35-
needs: [build]
43+
needs: [lint, test]
3644
if: ${{ github.event_name == 'workflow_dispatch' }}
3745
permissions:
3846
id-token: write # Required for OIDC trusted publishing
@@ -50,7 +58,7 @@ jobs:
5058
registry-url: "https://registry.npmjs.org"
5159

5260
- name: Set up SSH signing
53-
uses: photostructure/git-ssh-signing-action@v1
61+
uses: photostructure/git-ssh-signing-action@fdd4b062a9ba41473f013258cc9c7eea1640f826 # v1.2.0
5462
with:
5563
ssh-signing-key: ${{ secrets.SSH_SIGNING_KEY }}
5664
git-user-name: ${{ secrets.GIT_USER_NAME }}

0 commit comments

Comments
 (0)