Skip to content

Commit

Permalink
Update Yarn, add cache to Github Actions, and fix action-format using…
Browse files Browse the repository at this point in the history
… npm
  • Loading branch information
SleeplessByte committed Oct 18, 2024
1 parent 114d600 commit b692747
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 1,307 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/action-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ jobs:
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: 20.x
cache: 'yarn'
- name: Install project development dependencies
run: npm install --no-save
run: |
corepack enable yarn
corepack yarn install --immutable
- name: 'Format code'
run: ./bin/format.sh

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: 20.x

cache: 'yarn'
- name: Install project dependencies
run: |
corepack enable yarn
Expand All @@ -39,7 +39,7 @@ jobs:
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: ${{ matrix.node-version }}

cache: 'yarn'
- name: Install project dependencies
run: |
corepack enable yarn
Expand All @@ -61,7 +61,7 @@ jobs:
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: 20.x

cache: 'yarn'
- name: Remove root project files
run: rm -f package.json yarn.lock .yarnrc.yml

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr.ci.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: 20.x

cache: 'yarn'
- name: Install project dependencies
run: |
corepack enable yarn
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: ${{ matrix.node-version }}

cache: 'yarn'
- name: Install project dependencies
run: |
corepack enable yarn
Expand All @@ -83,7 +83,7 @@ jobs:
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: 20.x

cache: 'yarn'
- name: Remove root project files
run: rm -f package.json yarn.lock .yarnrc.yml

Expand Down
Loading

0 comments on commit b692747

Please sign in to comment.