File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments