Skip to content

Commit c1c118d

Browse files
committed
Replace npm by yarn
1 parent e673c6d commit c1c118d

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy to GitHub Pages
1+
name: Deploy DDI API to GitHub Pages
22

33
on:
44
push:
@@ -23,29 +23,31 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2727

2828
- name: Setup Node.js
29-
uses: actions/setup-node@v4
29+
uses: actions/setup-node@v6
3030
with:
31-
node-version: '20'
32-
cache: 'npm'
31+
node-version: "20"
32+
cache: "yarn"
33+
34+
- name: Install Yarn
35+
run: corepack enable && corepack prepare yarn@stable --activate
3336

3437
- name: Install dependencies
35-
run: npm ci
38+
run: yarn install --frozen-lockfile
3639

3740
- name: Build Swagger UI
38-
run: npm run build:swagger
41+
run: yarn build:swagger
3942

4043
- name: Setup Pages
41-
uses: actions/configure-pages@v4
44+
uses: actions/configure-pages@v5
4245

4346
- name: Upload artifact
4447
uses: actions/upload-pages-artifact@v3
4548
with:
46-
path: './dist'
49+
path: "./dist"
4750

4851
- name: Deploy to GitHub Pages
4952
id: deployment
5053
uses: actions/deploy-pages@v4
51-

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"build:swagger": "node scripts/build-swagger.js",
77
"preview:swagger": "npx serve dist -p 8080",
8-
"deploy": "npm run build:swagger && gh-pages -d dist"
8+
"deploy": "yarn build:swagger && gh-pages -d dist"
99
},
1010
"devDependencies": {
1111
"gh-pages": "^6.0.0",

0 commit comments

Comments
 (0)