Skip to content

Commit

Permalink
Push up enable corepack
Browse files Browse the repository at this point in the history
Following [this solution](actions/setup-node#480 (comment)) to enable corepack and caching.
  • Loading branch information
pantheredeye authored Nov 21, 2024
1 parent b74efad commit fd8bffd
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,23 @@ jobs:
node-version: ['22.11.0']

runs-on: ubuntu-24.04

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: 'yarn'


- name: Enable Corepack
run: corepack enable

- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: 'yarn'

- name: Use Yarn 4.4.0
run: corepack prepare yarn@4.4.0 --activate

- name: Install Dependencies
run: yarn install
run: yarn install --immutable

- name: Run Linter
run: yarn rw lint
Expand Down

0 comments on commit fd8bffd

Please sign in to comment.