Skip to content

Commit 56bf501

Browse files
MomenSherifclaude
andcommitted
fix: restore Yarn 4.6 configuration with node_modules mode
- Add .yarnrc.yml with nodeLinker: node-modules for compatibility - Update .gitignore to properly handle Yarn 4 files and PnP artifacts - Restore GitHub Actions workflow to support Yarn 4.6: - Node 20.x (required for Yarn 4.6) - Enable corepack - Use yarn install --immutable - Add explicit build step before publishing - Fix changesets access config to match package.json (public) This fixes the empty package publishing issue caused by reverting to outdated workflow configuration without proper Yarn 4 setup. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 7bd32bd commit 56bf501

File tree

7 files changed

+1629
-1601
lines changed

7 files changed

+1629
-1601
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"commit": false,
88
"fixed": [],
99
"linked": [],
10-
"access": "restricted",
10+
"access": "public",
1111
"baseBranch": "master",
1212
"updateInternalDependencies": "patch",
1313
"ignore": []

.github/workflows/release.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,27 @@ on:
55
branches:
66
- master
77

8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
810
jobs:
911
release:
1012
runs-on: ubuntu-latest
1113
steps:
12-
- uses: actions/checkout@v2
14+
- name: Checkout Repo
15+
uses: actions/checkout@v4
1316

14-
- name: Use Node.js 16.x
15-
uses: actions/setup-node@v2
17+
- name: Setup Node.js 20.x
18+
uses: actions/setup-node@v4
1619
with:
17-
node-version: 16.x
20+
node-version: 20.x
21+
22+
- name: Enable Corepack
23+
run: corepack enable
1824

1925
- name: Install Dependencies
20-
run: yarn
26+
run: yarn install --immutable
2127

22-
- name: Create Release Pull Request & Publish to npm
28+
- name: Create Release Pull Request or Publish to npm
2329
uses: changesets/action@v1
2430
with:
2531
publish: yarn release

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ node_modules
33
.pnp
44
.pnp.js
55

6+
# Yarn 4 files
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/sdks
12+
!.yarn/versions
13+
.pnp.*
14+
15+
# Yarn state (local only)
16+
.yarn/install-state.gz
17+
18+
619
# testing
720
coverage
821

.yarn/install-state.gz

-1.53 MB
Binary file not shown.

.yarnrc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
nodeLinker: node-modules
2+
3+
enableGlobalCache: false
4+
5+
compressionLevel: mixed
6+
7+
httpTimeout: 60000
8+
networkConcurrency: 8

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"dev": "cross-env NODE_ENV=development turbo run dev",
1212
"dev:google": "npm run dev -- --filter=...@react-oauth/google",
1313
"build": "cross-env NODE_ENV=production turbo run build",
14+
"build:packages": "npm run build -- --filter='@react-oauth/*'",
1415
"prettier:check": "prettier . --check --ignore-unknown --ignore-path .gitignore",
1516
"prettier:fix": "prettier . --write --ignore-unknown --ignore-path .gitignore",
16-
"prerelease": "npm run build -- --filter='@react-oauth/*'",
1717
"changeset": "changeset",
18-
"release": "changeset publish",
18+
"release": "yarn build:packages && changeset publish",
1919
"commit": "cz",
2020
"prepare": "is-ci || husky install"
2121
},
@@ -37,5 +37,6 @@
3737
"commitizen": {
3838
"path": "cz-conventional-changelog"
3939
}
40-
}
40+
},
41+
"packageManager": "[email protected]+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728"
4142
}

0 commit comments

Comments
 (0)