Skip to content

infra: CI manages release process#58

Merged
AndrewSouthpaw merged 6 commits intothlorenz:masterfrom
thompson-tomo:infra/releaseProcess
Jan 29, 2026
Merged

infra: CI manages release process#58
AndrewSouthpaw merged 6 commits intothlorenz:masterfrom
thompson-tomo:infra/releaseProcess

Conversation

@thompson-tomo
Copy link
Contributor

@thompson-tomo thompson-tomo commented Dec 26, 2025

This introduces github workflow for managing releases. This workflow is triggered when a tag is added to a commit and performs the following:

  • Set npm package version based on tag value
  • Create npm package
  • Uploads npm package to npm
  • Create github release with npm package attached and auto generated release notes

Required steps by maintainers:

  • Setup trusted publishers https://docs.npmjs.com/trusted-publishers/
  • Go to github tags and starting from 0.6.0 (or earlier) create a release for each tag by clicking the create release option, followed by the create release notes option to generate release notes.

@thompson-tomo
Copy link
Contributor Author

This has implemented the review feedback in thlorenz/doctoc#289

@thompson-tomo
Copy link
Contributor Author

@AndrewSouthpaw / @thlorenz how can we progress this release process automation pr as this library is now ready for a release?

@AndrewSouthpaw
Copy link
Collaborator

Unfortunately, I don't have admin access to anchor-markdown-header in npm, only to doctoc.

@thlorenz could you add me as a collaborator so I can set this up?

@thompson-tomo
Copy link
Contributor Author

Thanks @AndrewSouthpaw note that the CI pipeline has been defined such that even if the npm upload failed the creation of the github release would still complete. This github release would contain the files which could be uploaded to npm.

@thompson-tomo
Copy link
Contributor Author

@thlorenz could we get some assistance/input from you so that we can do a release and then prepare to release doctoc.

@thlorenz
Copy link
Owner

Hey sorry, life was keeping me busy over the last weeks.
@AndrewSouthpaw I invited you as maintainer to the npm package.

@thompson-tomo
Copy link
Contributor Author

No worries, thanks for doing that.

@thompson-tomo
Copy link
Contributor Author

@AndrewSouthpaw this should hopefully be done now. 🙂

@AndrewSouthpaw AndrewSouthpaw merged commit ad6b579 into thlorenz:master Jan 29, 2026
4 checks passed
@thompson-tomo thompson-tomo deleted the infra/releaseProcess branch January 29, 2026 15:04
@thompson-tomo
Copy link
Contributor Author

@AndrewSouthpaw could you please go through the process of completing a release of this library so that we can update doctoc?

@AndrewSouthpaw
Copy link
Collaborator

AndrewSouthpaw commented Feb 3, 2026 via email

@thompson-tomo
Copy link
Contributor Author

@AndrewSouthpaw sure, have you setup the trust publishing process as at a first look issue appears to be an authorisation issue?

@thompson-tomo
Copy link
Contributor Author

thompson-tomo commented Feb 4, 2026

@AndrewSouthpaw it appears that I might have found the source of the problem and why the gh issue wasn't created. The Workflow was using an old version of node. See #59 for details of the fix. I would suggest triggering a preview release of 0.8.1-preview1 to test after merge and do i manual upload of 0.8.0 to npmjs.

@AndrewSouthpaw
Copy link
Collaborator

Thanks! I confirmed the trust publishing process is set up. I'll give it another go after merging.

@AndrewSouthpaw
Copy link
Collaborator

Confirmed CI works now! Versions 0.8.0 and 0.8.1 are published. 🎉

@thompson-tomo
Copy link
Contributor Author

thompson-tomo commented Feb 4, 2026

Perfect, I will bring the changes across to doctoc via thlorenz/doctoc#311

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