Skip to content

Commit cb75a03

Browse files
authored
chore(ci): update js checks (#6015)
Updates JS CI jobs to use installed dependencies consistently and aligns check commands with repository scripts. Also cleans up unused CI environment configuration in related workflows.
1 parent 4ff1984 commit cb75a03

3 files changed

Lines changed: 19 additions & 29 deletions

File tree

‎.github/workflows/api-snapshot.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ jobs:
1515
api-snapshot:
1616
name: API Snapshot
1717
runs-on: ubuntu-latest
18-
env:
19-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
20-
TURBO_TEAM: rocicorp
2118
steps:
2219
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
20+
with:
21+
persist-credentials: false
2322
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
2423
with:
2524
node-version: 24.x

‎.github/workflows/js.yml‎

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,22 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
21+
with:
22+
persist-credentials: false
2123
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
2224
with:
2325
node-version: 24.x
2426
cache: 'npm'
25-
- run: npx syncpack lint
27+
- run: npm ci
28+
- run: npm exec -- syncpack lint
2629

2730
verify-deps:
2831
name: Verify Package Dependencies
2932
runs-on: ubuntu-latest
3033
steps:
3134
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
35+
with:
36+
persist-credentials: false
3237
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
3338
with:
3439
node-version: 24.x
@@ -40,26 +45,25 @@ jobs:
4045
name: Oxfmt
4146
runs-on: ubuntu-latest
4247
needs: [syncpack, verify-deps]
43-
env:
44-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
45-
TURBO_TEAM: rocicorp
4648
steps:
4749
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
50+
with:
51+
persist-credentials: false
4852
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
4953
with:
5054
node-version: 24.x
5155
cache: 'npm'
52-
- run: npx oxfmt@^0.45.0 --check
56+
- run: npm ci
57+
- run: npm run check-format
5358

5459
lint:
5560
name: Lint
5661
runs-on: ubuntu-latest
5762
needs: [syncpack, verify-deps]
58-
env:
59-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
60-
TURBO_TEAM: rocicorp
6163
steps:
6264
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
65+
with:
66+
persist-credentials: false
6367
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
6468
with:
6569
node-version: 24.x
@@ -71,11 +75,10 @@ jobs:
7175
name: Check Types
7276
runs-on: ubuntu-latest
7377
needs: [syncpack, verify-deps]
74-
env:
75-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
76-
TURBO_TEAM: rocicorp
7778
steps:
7879
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
80+
with:
81+
persist-credentials: false
7982
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
8083
with:
8184
node-version: 24.x
@@ -91,13 +94,11 @@ jobs:
9194
fail-fast: false
9295
matrix:
9396
shard: [1, 2, 3]
94-
env:
95-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
96-
TURBO_TEAM: rocicorp
9797
steps:
9898
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
9999
with:
100100
fetch-depth: 100
101+
persist-credentials: false
101102
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
102103
with:
103104
node-version: 24.x
@@ -116,21 +117,15 @@ jobs:
116117
matrix:
117118
pg-version: [18, 17, 16, 15]
118119
shard: [1, 2]
119-
env:
120-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
121-
TURBO_TEAM: rocicorp
122120
steps:
123121
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
124122
with:
125123
fetch-depth: 100
124+
persist-credentials: false
126125
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
127126
with:
128127
node-version: 24.x
129128
cache: 'npm'
130129
- run: npm ci
131130
- name: Run tests
132-
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4
133-
with:
134-
timeout_minutes: 10
135-
max_attempts: 3
136-
command: TEST_PG_MODE=pg-${{ matrix.pg-version }} npm run test -- --shard=${{ matrix.shard }}/2
131+
run: TEST_PG_MODE=pg-${{ matrix.pg-version }} npm run test -- --shard=${{ matrix.shard }}/2

‎packages/replicache/.github/workflows/upload-release-assets.yml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11-
env:
12-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
13-
TURBO_TEAM: rocicorp
14-
TURBO_REMOTE_ONLY: true
1511
steps:
1612
- uses: actions/checkout@v6
1713

0 commit comments

Comments
 (0)