Skip to content

Commit f982210

Browse files
author
Gopal S Akshintala
committed
Fix CI: switch to actions/setup-node, purge .yarn/ from git (was causing npm install failure)
- .github/workflows/deploy.yml: replace volta-cli/action with actions/setup-node@v4 (reads node version from package.json volta.node field), use npm ci for reproducible builds - .gitignore: replace Yarn Berry rules (.yarn/cache kept tracked) with full .yarn/ exclusion - git rm: purge .yarn/cache + .yarn/releases/yarn-4.6.0.cjs (old Gatsby Yarn 4 artifacts) that were being checked out on CI alongside npm project
1 parent 03a55ce commit f982210

1,754 files changed

Lines changed: 9 additions & 947 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323

24-
- name: Setup Volta + Node
25-
uses: volta-cli/action@v4
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version-file: package.json
28+
cache: npm
2629

2730
- name: Install dependencies
28-
run: npm install
31+
run: npm ci
2932

3033
- name: Build with Astro
3134
run: npm run build

.gitignore

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,5 @@ node_modules/
2626
npm-debug.log
2727
yarn-error.log
2828

29-
# Yarn
30-
.yarn/*
31-
!.yarn/cache
32-
!.yarn/patches
33-
!.yarn/plugins
34-
!.yarn/releases
35-
!.yarn/sdks
36-
!.yarn/versions
37-
.yarn/*.gz
29+
# Yarn (not used — project uses npm)
30+
.yarn/
Binary file not shown.
Binary file not shown.
-11.7 KB
Binary file not shown.
-1010 KB
Binary file not shown.
-38.8 KB
Binary file not shown.
Binary file not shown.
-3.85 KB
Binary file not shown.
-8.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)