Skip to content

Commit

Permalink
Switching to yarn in GH actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrello committed Dec 6, 2024
1 parent da1d939 commit 3cdc52c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,22 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "18.17.0"
node-version: '18.x'

- name: Enable corepack
run: |
corepack enable
corepack prepare [email protected] --activate
yarn set version 3.7.0
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-packages-${{ hashFiles('**/package-lock.json') }}
key: npm-packages-${{ hashFiles('**/yarn.lock') }}
restore-keys: npm-packages-

- name: Globally update npm
run: npm install -g npm@latest

- run: npm install
- run: yarn install --immutable

- name: Build
run: npm run build
17 changes: 10 additions & 7 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,22 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "18"
node-version: '18.x'

- name: Enable corepack
run: |
corepack enable
corepack prepare [email protected] --activate
yarn set version 3.7.0
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-packages-${{ hashFiles('**/package-lock.json') }}
key: npm-packages-${{ hashFiles('**/yarn.lock') }}
restore-keys: npm-packages-

- name: Globally update npm
run: npm install -g npm@latest

- run: npm install

- run: yarn install --immutable

# Debugging messages.
# - run: echo "${{ github.ref }}"
Expand Down

0 comments on commit 3cdc52c

Please sign in to comment.