Skip to content

Commit f4ad392

Browse files
committed
Migrate CI workflows from npm to yarn
1 parent 20ff9a3 commit f4ad392

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
fetch-depth: 0
1818
- uses: actions/setup-node@v3
1919
with:
20-
node-version: 18.x
21-
cache: npm
20+
node-version: 20.x
21+
cache: yarn
2222

2323
- name: Build docs
2424
run: |
25-
npm ci
26-
npm run build
25+
yarn install --frozen-lockfile
26+
yarn build
2727
2828
# Popular action to deploy to GitHub Pages:
2929
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus

‎.github/workflows/test-deploy.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: 18.x
17-
cache: npm
16+
node-version: 20.x
17+
cache: yarn
1818

1919
- name: Test build
2020
run: |
21-
npm ci
22-
npm run build
21+
yarn install --frozen-lockfile
22+
yarn build

0 commit comments

Comments
 (0)