Skip to content

Commit 3529ebc

Browse files
committed
fix: CI
1 parent 2ba24bc commit 3529ebc

2 files changed

Lines changed: 21 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@ name: PIE Elements CI
22

33
on:
44
push:
5-
branches:
6-
- develop
7-
- master
5+
branches: [develop, master]
86
pull_request:
9-
branches:
10-
- develop
11-
- master
7+
branches: [develop, master]
128

139
jobs:
1410
test:
1511
runs-on: ubuntu-latest
1612
steps:
1713
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0 # REQUIRED for lerna version
16+
- name: Configure Git
17+
run: |
18+
git config user.name "github-actions[bot]"
19+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
1820
- uses: actions/setup-node@v4
1921
with:
2022
node-version: 22
@@ -34,14 +36,17 @@ jobs:
3436
id-token: write # REQUIRED for npm trusted publishing
3537
steps:
3638
- uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0 # REQUIRED for lerna version
41+
- name: Configure Git
42+
run: |
43+
git config user.name "github-actions[bot]"
44+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
3745
- uses: actions/setup-node@v4
3846
with:
3947
node-version: 22
4048
registry-url: https://registry.npmjs.org/
4149
cache: yarn
42-
- run: |
43-
git config user.name "github-actions"
44-
git config user.email "github-actions@noreply.github.com"
4550
- run: yarn install
4651
- run: scripts/release --next --loglevel verbose
4752

@@ -56,13 +61,16 @@ jobs:
5661
id-token: write # REQUIRED for npm trusted publishing
5762
steps:
5863
- uses: actions/checkout@v4
64+
with:
65+
fetch-depth: 0 # REQUIRED for lerna version
66+
- name: Configure Git
67+
run: |
68+
git config user.name "github-actions[bot]"
69+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
5970
- uses: actions/setup-node@v4
6071
with:
6172
node-version: 22
6273
registry-url: https://registry.npmjs.org/
6374
cache: yarn
64-
- run: |
65-
git config user.name "github-actions"
66-
git config user.email "github-actions@noreply.github.com"
6775
- run: yarn install
6876
- run: scripts/release --loglevel verbose

scripts/release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const build = () => {
143143
const test = () => {
144144
const workers = os.cpus().length || 1;
145145
log(chalk.magenta(`--- STEP 4: TEST ---`));
146-
runCmd(`npx jest -w ${workers}`);
146+
runCmd(`${binary('jest')} -w ${workers}`);
147147
};
148148

149149
/**

0 commit comments

Comments
 (0)