Skip to content

👷 ci: publish to npm and create the GitHub release on a version tag - #2

Merged
msikorski26 merged 1 commit into
masterfrom
ci/release
Nov 29, 2026
Merged

msikorski26 merged 1 commit into
masterfrom
ci/release

Conversation

@msikorski26

Copy link
Copy Markdown
Member

What

.github/workflows/release.yml, started by a v* tag or by hand for an existing tag:

  1. checks that the tag matches package.json
  2. runs typecheck, tests and build (prepublishOnly)
  3. npm publish --provenance through npm trusted publishing (OIDC, no token)
  4. creates the GitHub release with generated notes

Packagist already updates from the tag through its webhook.

Before merging

Add a trusted publisher on npmjs.com for @mscode-pl/vocative: GitHub Actions, mscode-pl/vocative, workflow release.yml.

After merging

Run the workflow by hand with tag v0.2.0 to publish 0.2.0, which is tagged but not on npm yet.

- runs on v* tags, or by hand for an existing tag
- checks the tag against package.json, then tests, build and publish
- npm trusted publishing with provenance, no token stored
@msikorski26
msikorski26 merged commit 7b96a28 into master Nov 29, 2026
6 checks passed
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.

1 participant