Repository navigation
release: 2.4.0 on npm, with a trusted-publishing release workflow - #3
Merged
Merged
Conversation
- 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.
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.
Prepares the first npm release of
@alttester/driveras 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.publishConfignow points at the public npm registry withaccess: public, instead of GitHub Packages.homepageandbugslinks are added..github/workflows/release.yml(new): pushing av*tag checks that the tag matchespackage.json. It then runs typecheck, unit tests and build, and runsnpm publishthrough 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 thenextdist-tag.README.md: the install section now usesnpm install @alttester/driverand explains the versioning. A new "Releasing" section describes the tag flow.Checked locally
npm pack --dry-runshows@alttester/driver@2.4.0, 43 files:dist/,LICENSE,README.mdandpackage.json.npm publish --dry-runtargets the public registry with thelatesttag 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:
mainafter the merge and tag it:git tag v2.4.0 && git push origin v2.4.0. TheReleaseworkflow will fail at the publish step, because no trusted publisher exists yet. That is expected.npm ci && npm run build, thennpm login, thennpm publish --access public.@alttester/driver, then Settings. Under Trusted Publisher, choose GitHub Actions, and enter organizationalttester, repositoryAltTester-TypeScript-Driverand workflowrelease.yml. Then choose "Require two-factor authentication and disallow tokens".From 2.4.1 on, pushing a tag is the whole release.