Skip to content

Commit fb626a3

Browse files
authored
Merge pull request #117 from magento-devdocs/ds_fix-workflows
Fix indexing workflow
2 parents aac1397 + c2dfaaf commit fb626a3

File tree

2 files changed

+29
-10
lines changed

2 files changed

+29
-10
lines changed

.github/workflows/index.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,32 @@ jobs:
1818
build-and-index:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v3
23-
- name: Yarn Install
24-
uses: bahmutov/npm-install@v1
25-
- name: Build
26-
run: |
27-
yarn build
21+
- uses: actions/checkout@v3
22+
23+
- name: Setup Node v16 for Yarn v3
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: '16.15.0' # Current LTS version
27+
28+
- name: Enable Corepack for Yarn v3
29+
run: corepack enable
30+
31+
- name: Install Yarn v3
32+
uses: borales/actions-yarn@v4
33+
with:
34+
cmd: set version stable
35+
36+
- name: Install dependencies
37+
uses: borales/actions-yarn@v4
38+
with:
39+
cmd: install
40+
env:
41+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
42+
43+
- name: Build site
44+
uses: borales/actions-yarn@v4
45+
with:
46+
cmd: build
2847
env:
2948
PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build'
3049
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6108,9 +6108,9 @@ __metadata:
61086108
linkType: hard
61096109

61106110
"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001370, caniuse-lite@npm:^1.0.30001373":
6111-
version: 1.0.30001452
6112-
resolution: "caniuse-lite@npm:1.0.30001452"
6113-
checksum: de02aad7b71112409f30de53e8080bef0fe612ed95bba8b14fb830f59683e8caabc27bdd520563686965be77f2cb56e239e44b920144630b91d7fe9911ba8ad5
6111+
version: 1.0.30001457
6112+
resolution: "caniuse-lite@npm:1.0.30001457"
6113+
checksum: f311a7c5098681962402a86a0a367014ee91c3135395ee68bbfaf45caf0e36d581e42d7c5b1526ce99484a228e6cf5cf0e400678292c65f5a21512a3fc7a5fb6
61146114
languageName: node
61156115
linkType: hard
61166116

0 commit comments

Comments
 (0)