Skip to content

Commit c2dfaaf

Browse files
committed
Fix index workflow
Use actions/checkout@v3 Upgrade borales/actions-yarn to 4 Place 'env' as in the tools docs
1 parent d47591c commit c2dfaaf

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/index.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
build-and-index:
1919
runs-on: ubuntu-latest
2020
steps:
21+
- uses: actions/checkout@v3
22+
2123
- name: Setup Node v16 for Yarn v3
2224
uses: actions/setup-node@v3
2325
with:
@@ -27,19 +29,21 @@ jobs:
2729
run: corepack enable
2830

2931
- name: Install Yarn v3
30-
uses: borales/actions-yarn@v3
32+
uses: borales/actions-yarn@v4
3133
with:
3234
cmd: set version stable
3335

3436
- name: Install dependencies
35-
uses: borales/actions-yarn@v3
36-
env:
37-
YARN_ENABLE_IMMUTABLE_INSTALLS: false
37+
uses: borales/actions-yarn@v4
3838
with:
3939
cmd: install
40+
env:
41+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
4042

4143
- name: Build site
42-
uses: borales/actions-yarn@v3
44+
uses: borales/actions-yarn@v4
45+
with:
46+
cmd: build
4347
env:
4448
PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build'
4549
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -53,5 +57,3 @@ jobs:
5357
GATSBY_ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME || github.event.repository.name }}
5458
GATSBY_FEDS_PRIVACY_ID: ${{ secrets.AIO_FEDS_PRIVACY_ID }}
5559
GATSBY_SITE_DOMAIN_URL: https://developer.adobe.com
56-
with:
57-
cmd: build

0 commit comments

Comments
 (0)