Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Add a version bump script #1455

Merged
merged 6 commits into from
Dec 6, 2024
Merged

Add a version bump script #1455

merged 6 commits into from
Dec 6, 2024

Conversation

circlecube
Copy link
Member

Proposed changes

This is a step in the direction of automating our releases. A script to bump the version number in the package file and the plugin file. I figured since we wanted a workflow that would issue a release, this may be the first step in getting there, since our projects are not consistent on where version updates are required in code, we will likely need something per repo that does the bump and then a workflow that can run the script.

This first bumps the version in the package and plugin file, and then clears any previous builds, creates a fresh build, and updates the i18n file(s). These are repetitive manual steps that are nice to automate with a command.

The command can be run individually and defaults to a patch release, but can be either major, minor, or patch (default).

How to use:

// major update
node set-version-bump major
// minor update
node set-version-bump minor
// patch update
node set-version-bump patch

// assumes patch bump and also does a build and updates i18n files
npm run set-version-bump

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@circlecube circlecube added this to the December 11, 2024 Release milestone Dec 5, 2024
@circlecube circlecube self-assigned this Dec 5, 2024
@circlecube circlecube changed the base branch from main to develop December 5, 2024 19:35
Copy link

cypress bot commented Dec 5, 2024

Bluehost Brand Plugin    Run #12062

Run Properties:  status check passed Passed #12062  •  git commit e70c94daa2: Merge branch 'develop' into add/version-bump-script
Project Bluehost Brand Plugin
Branch Review add/version-bump-script
Run status status check passed Passed #12062
Run duration 34m 37s
Commit git commit e70c94daa2: Merge branch 'develop' into add/version-bump-script
Committer Evan Mullins
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 32
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 415
View all changes introduced in this branch ↗︎

Copy link

cypress bot commented Dec 5, 2024

Bluehost Brand Plugin    Run #12058

Run Properties:  status check passed Passed #12058  •  git commit eaa520fff0 ℹ️: Merge fc8a7bca39f35d35bf9f0b7941f4dc6d31678ed6 into b12e1d7c561c1047293b9e95c5bf...
Project Bluehost Brand Plugin
Branch Review add/version-bump-script
Run status status check passed Passed #12058
Run duration 32m 27s
Commit git commit eaa520fff0 ℹ️: Merge fc8a7bca39f35d35bf9f0b7941f4dc6d31678ed6 into b12e1d7c561c1047293b9e95c5bf...
Committer Evan Mullins
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 32
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 415
View all changes introduced in this branch ↗︎

* develop:
  NPM Dev(deps-dev): Bump cypress from 13.16.0 to 13.16.1
  NPM(deps): Bump @heroicons/react from 2.1.5 to 2.2.0
  NPM Dev(deps-dev): Bump tailwindcss from 3.4.15 to 3.4.16
  NPM(deps): Bump @wordpress/i18n from 5.12.0 to 5.13.0
  NPM(deps): Bump react-router-dom from 6.28.0 to 7.0.2
@circlecube circlecube mentioned this pull request Dec 5, 2024
8 tasks
@circlecube circlecube merged commit f3bfc25 into develop Dec 6, 2024
3 checks passed
@circlecube circlecube deleted the add/version-bump-script branch December 6, 2024 21:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants