Skip to content

Commit 2c87a1a

Browse files
committed
Removes root yarn.lock and improves package publishing
Switches root dependency installation to package-scoped npm workspace commands for more accurate publishing. Adds node_modules to .npmignore files in all packages to prevent unwanted files in npm releases. Removes root-level yarn.lock to avoid workspace lockfile conflicts and eliminate unnecessary files from version control.
1 parent 753902a commit 2c87a1a

File tree

8 files changed

+6
-4503
lines changed

8 files changed

+6
-4503
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484

8585
- name: Install dependencies (root)
8686
if: steps.check.outputs.should_publish == 'true'
87-
run: npm ci
87+
run: npm ci -w ${{ env.PACKAGE_DIR }}
8888

8989
- name: Build package
9090
if: steps.check.outputs.should_publish == 'true'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
yarn.lock
22
package-lock.json
3+
node_modules/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
yarn.lock
22
package-lock.json
3+
node_modules/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
yarn.lock
22
package-lock.json
3+
node_modules/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
yarn.lock
22
package-lock.json
3+
node_modules/

packages/gatsby-source-github-graphql/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
yarn.lock
22
package-lock.json
3+
node_modules/

0 commit comments

Comments
 (0)