Skip to content

Commit 095cd06

Browse files
chore: update release index workflow to specify working directory and cache dependency path
1 parent 82a5c55 commit 095cd06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release-index.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,21 @@ jobs:
2727
with:
2828
node-version: "20"
2929
cache: "npm"
30+
cache-dependency-path: .github/scripts/release-index/package-lock.json
3031

3132
- name: Install dependencies
33+
working-directory: .github/scripts/release-index
3234
run: npm ci
3335

3436
- name: Build Release Index
37+
working-directory: .github/scripts/release-index
3538
env:
3639
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
3740
run: node build-releases.js
3841
timeout-minutes: 2
3942

4043
- name: Verify output
44+
working-directory: .github/scripts/release-index
4145
run: |
4246
if [ ! -f releases/releases.json ]; then
4347
echo "Error: releases.json not generated"
@@ -50,7 +54,7 @@ jobs:
5054
if: success()
5155
with:
5256
github_token: ${{ secrets.TOKEN_GITHUB }}
53-
publish_dir: ./releases
57+
publish_dir: .github/scripts/release-index/releases
5458
publish_branch: gh-pages
5559
user_name: "github-actions[bot]"
5660
user_email: "github-actions[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)