Skip to content

Commit e3c5742

Browse files
authored
ci(setup-node): use new universal setup-node action (#650)
1 parent 483e27d commit e3c5742

File tree

3 files changed

+4
-28
lines changed

3 files changed

+4
-28
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,7 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # pin@v4
2323

24-
- name: Setup Node.js
25-
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
26-
with:
27-
node-version-file: .nvmrc
28-
cache: "yarn"
29-
30-
- name: install
31-
run: yarn install --frozen-lockfile
24+
- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
3225

3326
- name: verify
3427
run: yarn check:sanity
@@ -42,14 +35,7 @@ jobs:
4235
- name: Checkout
4336
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # pin@v4
4437

45-
- name: Setup Node.js
46-
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
47-
with:
48-
node-version-file: .nvmrc
49-
cache: "yarn"
50-
51-
- name: install
52-
run: yarn install --frozen-lockfile
38+
- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
5339

5440
- name: Cache Restore
5541
id: cache

.github/workflows/cron.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@ jobs:
3434
with:
3535
version: nightly
3636

37-
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
38-
with:
39-
node-version-file: .nvmrc
40-
cache: "yarn"
41-
42-
- name: Install dependencies
43-
run: yarn install --frozen-lockfile
37+
- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
4438

4539
- name: Generate library
4640
run: yarn generate:addresses

.github/workflows/test-release-alpha.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ jobs:
2525
- name: Checkout
2626
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # pin@v3
2727

28-
- name: Setup Node.js
29-
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
30-
with:
31-
node-version-file: .nvmrc
32-
cache: "yarn"
28+
- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
3329

3430
- name: Package size report
3531
uses: pkg-size/action@a637fb0897b6f14f18e776d8c3dbccb34a1ad27b # pin@v1

0 commit comments

Comments
 (0)