Skip to content

Commit 8ee5be1

Browse files
committed
Add comprehensive OIDC debug output based on Yarn implementation
1 parent f356c9a commit 8ee5be1

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,31 @@ jobs:
8080
${{ runner.os }}-yarn-
8181
- run: yarn install --immutable
8282
- run: yarn build
83-
- name: Publish to npm
83+
- name: Debug OIDC environment for Yarn
8484
run: |
85+
echo "=== Yarn OIDC Debug Info ==="
8586
echo "Yarn version: $(yarn --version)"
87+
echo ""
88+
echo "CI environment variables:"
89+
echo " CI: ${CI:-not set}"
90+
echo " GITHUB_ACTIONS: ${GITHUB_ACTIONS:-not set}"
91+
echo " GITLAB: ${GITLAB:-not set}"
92+
echo ""
93+
echo "GitHub Actions OIDC variables:"
94+
echo " ACTIONS_ID_TOKEN_REQUEST_URL: $([[ -n "$ACTIONS_ID_TOKEN_REQUEST_URL" ]] && echo "SET" || echo "NOT SET")"
95+
echo " ACTIONS_ID_TOKEN_REQUEST_TOKEN: $([[ -n "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" ]] && echo "SET" || echo "NOT SET")"
96+
echo ""
97+
echo "GitLab OIDC variables:"
98+
echo " NPM_ID_TOKEN: $([[ -n "$NPM_ID_TOKEN" ]] && echo "SET" || echo "NOT SET")"
99+
echo ""
100+
echo "Package info:"
101+
echo " Name: $(jq -r '.name' package.json)"
102+
echo " Scope: @reforge-com"
103+
echo ""
104+
echo "Yarn registry config:"
105+
cat .yarnrc.yml
106+
- name: Publish to npm
107+
run: |
86108
# Yarn 4.11.0 with OIDC trusted publishing
87109
if [ "${{ needs.check-version.outputs.is-prerelease }}" == "true" ]; then
88110
yarn npm publish --access public --tag ${{ needs.check-version.outputs.npm-tag }}

0 commit comments

Comments
 (0)