Repository navigation
Conversation
How releases work now: 1. Bump the version in package.json and src/version.ts and add its CHANGELOG.md section (in the PR, as before). 2. Merge develop into main. release.yml creates the GitHub release vX.Y.Z with that changelog section as notes. If the release already exists (no version bump), it does nothing. 3. publish.yml publishes the same version to npm with trusted publishing. It runs when release.yml starts it, or when a release is published by hand on GitHub. It checks that the release tag matches package.json and skips a version that's already on npm. So the GitHub release and the npm version always match. - release.yml starts publish.yml with workflow_dispatch, because a release created with the workflow token doesn't trigger other workflows. - publish.yml keeps its file name, so the npm trusted publisher entry (workflow publish.yml) still applies. - The tag-push trigger is gone; CONTRIBUTING.md describes the new steps. The existing v0.2.1 tag has no release and isn't on npm; after this reaches main, release.yml creates the v0.2.1 release and publishes it.
Release on merge to main, publish to npm on each GitHub release
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The version stays 0.2.1, which is already released and on npm, so this merge creates nothing; release.yml logs that v0.2.1 exists. The next version bump releases automatically.