Skip to content

Commit 3829c94

Browse files
committed
we need to install deps etc
1 parent c14ab26 commit 3829c94

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/sync-single-english-algolia-index.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,21 @@ jobs:
2020
steps:
2121
- name: checkout
2222
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
23-
- name: Get version from Algolia label if present; do not continue if the label is not found.
24-
id: getVersion
25-
run: $GITHUB_WORKSPACE/.github/actions-scripts/enterprise-algolia-label.js
26-
- if: ${{ steps.getVersion.outputs.versionToSync }}
27-
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
23+
- uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
2824
with:
2925
node-version: 14.x
30-
- if: ${{ steps.getVersion.outputs.versionToSync }}
31-
name: cache node modules
26+
- name: cache node modules
3227
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a
3328
with:
3429
path: ~/.npm
3530
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3631
restore-keys: |
3732
${{ runner.os }}-node-
38-
- if: ${{ steps.getVersion.outputs.versionToSync }}
39-
name: npm ci
33+
- name: npm ci
4034
run: npm ci
35+
- name: Get version from Algolia label if present; only continue if the label is found.
36+
id: getVersion
37+
run: $GITHUB_WORKSPACE/.github/actions-scripts/enterprise-algolia-label.js
4138
- if: ${{ steps.getVersion.outputs.versionToSync }}
4239
name: Sync English index for single version
4340
env:

0 commit comments

Comments
 (0)