Skip to content

release: 2.4.0 on npm, with a trusted-publishing release workflow - #3

Merged
rucindrea merged 1 commit into
mainfrom
release/2.4.0
Nov 23, 2026
Merged

rucindrea merged 1 commit into
mainfrom
release/2.4.0

Conversation

@rucindrea

Copy link
Copy Markdown
Contributor

Prepares the first npm release of @alttester/driver as 2.4.0. The driver shares its major and minor version with the AltTester® SDK (currently 2.4.1), and patch versions are released independently.

Changes

  • package.json: the version is 2.4.0. publishConfig now points at the public npm registry with access: public, instead of GitHub Packages. homepage and bugs links are added.
  • .github/workflows/release.yml (new): pushing a v* tag checks that the tag matches package.json. It then runs typecheck, unit tests and build, and runs npm publish through npm trusted publishing (OIDC), so no npm token is stored and the package gets provenance. A pre-release version (2.5.0-beta.1) goes to the next dist-tag.
  • README.md: the install section now uses npm install @alttester/driver and explains the versioning. A new "Releasing" section describes the tag flow.
  • Two code comments that pointed at the removed protocol notes are removed.

Checked locally

  • Typecheck passes, the unit tests pass (179 passed, 19 skipped), and the build succeeds.
  • npm pack --dry-run shows @alttester/driver@2.4.0, 43 files: dist/, LICENSE, README.md and package.json.
  • npm publish --dry-run targets the public registry with the latest tag and public access.

After merge (npm account owner)

npm only lets you set a trusted publisher on a package that already exists, so the first version is published by hand:

  1. Check out main after the merge and tag it: git tag v2.4.0 && git push origin v2.4.0. The Release workflow will fail at the publish step, because no trusted publisher exists yet. That is expected.
  2. From that checkout, run npm ci && npm run build, then npm login, then npm publish --access public.
  3. On npmjs.com, open @alttester/driver, then Settings. Under Trusted Publisher, choose GitHub Actions, and enter organization alttester, repository AltTester-TypeScript-Driver and workflow release.yml. Then choose "Require two-factor authentication and disallow tokens".

From 2.4.1 on, pushing a tag is the whole release.

- Set the version to 2.4.0, sharing major.minor with the AltTester SDK.
- Point publishConfig at the public npm registry with public access.
- Add release.yml: a v* tag checks the version, runs the checks and publishes with provenance via OIDC.
- Update the README install section and add release steps.
- Drop two comments that pointed at the removed protocol notes.
@rucindrea
rucindrea merged commit 7ac341c into main Nov 23, 2026
3 checks passed
@rucindrea
rucindrea deleted the release/2.4.0 branch November 23, 2026 19:09
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