chore: dry run release workflow for the gen2-migration branch
#14363
+22
−0
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.
Description of changes
Added a GitHub workflow that builds the
@aws-amplify/cli-internalpackage in thegen2-migrationbranch and publishes it to NPM.@aws-amplify/cli-internal-gen2-migration-alpha-alphasuffix and a0.xversion since it is experimental.Currently the workflow only performs a dry-run; once we see the expected result we will remove the
dry-runoption.The publishing itself will leverage NPM trusted publishing after an initial manual release with a token.
Why not release the
@aws-amplify/clipackage?The @aws-amplify/cli package is a wrapper on top of @aws-amplify/cli-internal that dynamically installs an amplify binary based on the operating system of the user.
Those binaries are built and published via the standard CLI release process, which we currently would like to avoid. The consequence of this is creating a standard NPM package with many dependencies - instead of a bundled executable binary. For the purposes of this experimental release - this is ok.
Note that contrary to what the name suggests, the
@aws-amplify/cli-internalis actually public and already published to NPM, so we are not publishing anything we don't already publish.Description of how you validated changes
Manually executed the steps locally on a clean clone of the repo.
Checklist
yarn testpassesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.