Skip to content

feat: add reusable npm package publish workflow#35

Closed
jan-kubica wants to merge 1 commit into
mainfrom
chore/reusable-npm-package-publish
Closed

feat: add reusable npm package publish workflow#35
jan-kubica wants to merge 1 commit into
mainfrom
chore/reusable-npm-package-publish

Conversation

@jan-kubica
Copy link
Copy Markdown
Contributor

Adds a reusable npm package publishing workflow for stella package repositories.\n\nThe workflow:\n- installs pinned Node, npm, and Bun versions\n- runs standard package checks\n- packs configured package directories into tarballs\n- publishes through the existing hardened OIDC npm publish action\n\nCaller workflows keep the package-specific directory list and grant id-token permissions.

@jan-kubica jan-kubica requested a review from nnad3N as a code owner May 31, 2026 16:04
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1c5e9c12b7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

bun-version: ${{ inputs.bun-version }}

- name: Set up npm
run: npm install --global "npm@${{ inputs.npm-version }}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Clear setup-node's placeholder token before npm commands

When this workflow runs without a real NODE_AUTH_TOKEN, the preceding pinned actions/setup-node@v6 writes an npmrc auth line reading from NODE_AUTH_TOKEN and exports the placeholder XXXXX-XXXXX-XXXXX-XXXXX; npm then sends that invalid bearer token even for public registry reads, so this npm install --global npm@... step fails with 403 before the hardened publish action gets a chance to neutralize the placeholder. This affects the normal trusted-publishing path where no legacy npm token is provided; clear/override NODE_AUTH_TOKEN before any npm command after setup-node.

Useful? React with 👍 / 👎.

@jan-kubica jan-kubica closed this May 31, 2026
@jan-kubica jan-kubica deleted the chore/reusable-npm-package-publish branch May 31, 2026 17:30
@github-actions github-actions Bot locked and limited conversation to collaborators May 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant