Skip to content

chore: Forgo keeping version in package.json up to date#1006

Merged
akash1810 merged 1 commit intomainfrom
aa-version-number-tracking
Dec 23, 2021
Merged

chore: Forgo keeping version in package.json up to date#1006
akash1810 merged 1 commit intomainfrom
aa-version-number-tracking

Conversation

@akash1810
Copy link
Copy Markdown
Member

@akash1810 akash1810 commented Dec 23, 2021

What does this change?

Currently when a new release is made (via Semantic Release), a robot will raise and merge a PR to update version in package.json.

This is handy as we can browse the file to see what the latest version is.
I don't think it's necessary for the release process - Semantic Release gets the latest version number from npm.

It comes at a slight cost, however:

  • A bit of PR noise. We're not expected to interacted with the robot's PRs, but the CODEOWNERS rules mean we get added as reviewers.
  • An odd scenario where our CI checks don't pass and the robot's PR cannot be automatically merged. See ci: Move AWS CDK check into it's own GHA job #998.

This change moves to a simpler model of keeping version in package.json completly static between releases.
If one would like to find the number of the latest version, npm or GitHub releases can be used.

How to test

Might be one to try on the beta branch?

How can we measure success?

Releasing a new version of the library produces less noise.

Have we considered potential risks?

This should not have any impact on the release process as Semantic Release gets the latest number from npm, rather than reading form the package.json.

Checklist

  • I have listed any breaking changes, along with a migration path 1
  • I have updated the documentation as required for the described changes 2

Footnotes

  1. Consider whether this is something that will mean changes to projects that have already been migrated, or to the CDK CLI tool. If changes are required, consider adding a checklist here and/or linking to related PRs.

  2. If you are adding a new construct or pattern, has new documentation been added? If you are amending defaults or changing behaviour, are the existing docs still valid?

Currently when a new release is made (via Semantic Release), a robot will raise and merge a PR to update `version` in `package.json`.

This is handy as we can browse the file to see what the latest version is.
I don't think it's necessary for the release process - Semantic Release gets the latest version number from npm.

It comes at a slight cost, however:
  - A bit of PR noise. We're not expected to interacted with the robot's PRs, but the `CODEOWNERS` rules mean we get added as reviewers.
  - An odd scenario where our CI checks don't pass and the robot's PR cannot be automatically merged. See #998.

This change moves to a simpler model of keeping `version` in `package.json` completly static between releases.
If one would like to find the number of the latest version, npm or GitHub releases can be used.
@akash1810 akash1810 requested a review from a team December 23, 2021 13:34
@akash1810 akash1810 merged commit 9f64394 into main Dec 23, 2021
@akash1810 akash1810 deleted the aa-version-number-tracking branch December 23, 2021 14:53
@akash1810
Copy link
Copy Markdown
Member Author

akash1810 commented Dec 23, 2021

Bah! The version number is being used on the documentation site!

image

@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 32.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

akash1810 added a commit that referenced this pull request May 30, 2023
A second attempt at #1006 following a recent change in how permissions are granted to GitHub workflows.

See:
- #1006
- #1876 (comment).
akash1810 added a commit that referenced this pull request Jun 13, 2023
A second attempt at #1006 following a recent change in how permissions are granted to GitHub workflows.

See:
- #1006
- #1876 (comment).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants