Skip to content

Fix release pipeline to use Trusted Publishers#4427

Open
allejo wants to merge 1 commit into
mainfrom
fix/release-pipeline
Open

Fix release pipeline to use Trusted Publishers#4427
allejo wants to merge 1 commit into
mainfrom
fix/release-pipeline

Conversation

@allejo

@allejo allejo commented Jul 6, 2026

Copy link
Copy Markdown
Member

Josh, in your absence, I tagged and released 11.11.2 with all the already-merged PRs through July 2025. The new release could not be automatically published to npm or our CDN repo due to expired or revoked tokens (in December 2025, npm revoked all classic tokens).

Changes

I've logged in and configured the highlight.js and @highlightjs/cdn-assets packages to use npm's new Trusted Publishers pattern.

I've largely refactored the pipeline in this PR and removed a lot of the third-party actions that were previously used. The last hardcoded dry run of this action was successful. It's hard to test a production release pipeline, so I'm hoping you can serve as a second pair of eyes.

I also added a workflow_dispatch so we can manually publish specific tags when our pipeline is broken and doesn't auto-publish, as in 11.11.2.

Checklist

  • Added markup tests, or they don't apply here because...
  • Updated the changelog at CHANGES.md

@allejo
allejo requested a review from joshgoebel July 6, 2026 04:28
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

No changes

No existing files changed.

run: |
echo We seem to be releasing `${RELEASING}`.
false
npm publish --tag ${{ env.NPM_TAG }} ${{ env.DRY_RUN_FLAG }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This publishes the repository root, not the generated Node package. The old action pointed at ./build/package.json; from this branch, a root npm pack --dry-run includes src/, test/, and tools/, while the package's main still points to ./lib/index.js (which only exists under build). The published package would be broken.

Should this be npm publish ./build --tag ...?

@arturict

Copy link
Copy Markdown
Contributor

Looks good. If CI policy changed, please include a quick note confirming no downstream pipeline regressions from release pipeline change.

@paladox

paladox commented Jul 22, 2026

Copy link
Copy Markdown
Member

@allejo see comment please :)

@joshgoebel are you able to review please? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants