Skip to content

Commit

Permalink
ci(node): use the setup-node action in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
boredland committed Oct 14, 2024
1 parent 692df58 commit d9fe7f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,7 @@ jobs:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # pin@v4

- name: Setup Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
with:
node-version-file: .nvmrc
cache: "yarn"

- name: install
run: yarn install --frozen-lockfile
- uses: ./.github/setup-node/

- name: Cache Restore
id: cache
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ jobs:
with:
version: nightly

- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
with:
node-version-file: .nvmrc
cache: "yarn"

- name: Install dependencies
run: yarn install --frozen-lockfile
- uses: ./.github/setup-node/

- name: Generate library
run: yarn generate:addresses
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/test-release-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # pin@v3

- name: Setup Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # pin@v4
with:
node-version-file: .nvmrc
cache: "yarn"

- uses: ./.github/setup-node/

- name: Package size report
uses: pkg-size/action@a637fb0897b6f14f18e776d8c3dbccb34a1ad27b # pin@v1
Expand Down

0 comments on commit d9fe7f1

Please sign in to comment.