-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}" | ||
|