Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ jobs:
- name: Update npm for trusted publishing
run: npm install -g npm@latest

- name: Verify npm version and OIDC availability
run: |
echo "npm version: $(npm --version)"
echo "OIDC available: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL != '' }}"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: OIDC availability check always evaluates to false

The OIDC verification step uses ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL != '' }} to check OIDC availability, but this will always evaluate to false. The ACTIONS_ID_TOKEN_REQUEST_URL is a runtime environment variable injected by GitHub Actions infrastructure, not accessible via the workflow's env context (which only includes variables defined in env: blocks). To check this variable, shell syntax like $ACTIONS_ID_TOKEN_REQUEST_URL must be used instead of the expression context. The diagnostic output will always show "OIDC available: false" regardless of actual OIDC availability, providing misleading information during troubleshooting.

Additional Locations (1)

Fix in Cursor Fix in Web


- name: Install dependencies
run: pnpm install

Expand All @@ -81,9 +86,12 @@ jobs:
- name: Build project
run: pnpm build

- name: Clear .npmrc auth token (use OIDC instead)
run: npm config delete //registry.npmjs.org/:_authToken || true

- name: Publish canary to npm
working-directory: ./dist
run: npm publish --access public --tag pr_${{ inputs.pr-number }}
run: npm publish --access public --tag pr_${{ inputs.pr-number }} --provenance

- name: Comment PR
uses: actions/github-script@v6
Expand Down Expand Up @@ -142,9 +150,17 @@ jobs:
- name: Update npm for trusted publishing
run: npm install -g npm@latest

- name: Verify npm version and OIDC availability
run: |
echo "npm version: $(npm --version)"
echo "OIDC available: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL != '' }}"

- name: Install Dependencies
run: pnpm install

- name: Clear .npmrc auth token (use OIDC instead)
run: npm config delete //registry.npmjs.org/:_authToken || true

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "UIKit for Cube Projects",
"repository": {
"type": "git",
"url": "https://github.com/cube-js/cube-ui-kit.git"
"url": "git+https://github.com/cube-js/cube-ui-kit.git"
},
"module": "dist/es/index.js",
"types": "dist/types/index.d.ts",
Expand Down
Loading