Skip to content

Commit b03c8bc

Browse files
committed
test(ci): bypass proto shims to test OIDC compatibility
This PR tests if npm OIDC works when we bypass proto/moonrepo shims entirely. Changes: - Replace moonrepo/setup-toolchain with actions/setup-node - Install npm 11.6.2 directly (no proto shim) - Install pnpm 10.17.1 directly (no proto shim) - Install moon 1.39.1 directly (no proto shim) - Keep GarthDB/changesets-action@v1.6.8 with oidcAuth: true Purpose: After exhaustive testing (v1.6.4-v1.6.8, PR #687), we've confirmed: ✅ OIDC environment variables ARE present in GitHub Actions ✅ npm 11.6.2 is the correct version ✅ Trusted publishers are configured correctly ❌ npm can't authenticate through proto shim chain This test will definitively show if proto shims are the blocker. Expected outcomes: If this WORKS (✅ npm publishes successfully): → Proto shims are confirmed as the issue → We have two options: 1. Use this direct install approach (no proto in release workflow) 2. File bug with proto/moonrepo about OIDC support If this FAILS (❌ still ENEEDAUTH): → Something else is wrong with OIDC setup → Fall back to NPM_TOKEN Related: - All v1.6.x attempts: ENEEDAUTH with proto - PR #687: Confirmed OIDC vars present in shell - PR #688: v1.6.8 still failed with proto
1 parent 00c4198 commit b03c8bc

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
22-
- uses: moonrepo/setup-toolchain@v0
22+
# Set up Node.js without proto to test OIDC compatibility
23+
- uses: actions/setup-node@v4
2324
with:
24-
auto-install: true
25-
# npm 11.6.2 configured in .prototools for OIDC support
25+
node-version: "20.17.0"
26+
# Install npm 11.6.2 (required for OIDC) - bypassing proto
27+
- run: npm install -g npm@11.6.2
28+
# Install pnpm directly
29+
- run: npm install -g pnpm@10.17.1
30+
# Install moon directly (bypassing proto)
31+
- run: npm install -g @moonrepo/cli@1.39.1
2632
- run: moon setup
2733
- run: moon run :build --query "projectSource~packages/*"
2834
- name: Create Release Pull Request or Publish to npm
@@ -31,6 +37,6 @@ jobs:
3137
with:
3238
commit: "chore: release"
3339
publish: pnpm release
34-
oidcAuth: true # Use OIDC with explicit env var passing (fixes proto shim compatibility)
40+
oidcAuth: true # Test OIDC without proto shims
3541
env:
3642
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)