Skip to content

Debug OIDC and remove registry-url to prevent NODE_AUTH_TOKEN interfe… #25

Debug OIDC and remove registry-url to prevent NODE_AUTH_TOKEN interfe…

Debug OIDC and remove registry-url to prevent NODE_AUTH_TOKEN interfe… #25

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install npm@latest
run: npm install -g npm@latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Debug OIDC environment
run: |
echo "npm version: $(npm -v)"
echo "OIDC URL set: $([[ -n \"$ACTIONS_ID_TOKEN_REQUEST_URL\" ]] && echo yes || echo no)"
echo "NODE_AUTH_TOKEN set: $([[ -n \"$NODE_AUTH_TOKEN\" ]] && echo yes || echo no)"
cat ~/.npmrc 2>/dev/null || echo "No .npmrc"
- name: Publish to npm
run: npm publish --access public