Skip to content

[WIP] Automate package.json version update during release workflow#1

Merged
jhaisley merged 4 commits intomainfrom
copilot/fix-8387b52e-2d88-42a2-a02b-658680beb387
Oct 7, 2025
Merged

[WIP] Automate package.json version update during release workflow#1
jhaisley merged 4 commits intomainfrom
copilot/fix-8387b52e-2d88-42a2-a02b-658680beb387

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 7, 2025

  • Create a new GitHub Actions workflow for releases triggered by version tags
  • Add version extraction step to strip 'v' prefix from tag
  • Add step to update package.json version field
  • Add git commit and push step for version change
  • Add steps for building, packaging (.vsix), and attestation
  • Test workflow configuration syntax
  • Update documentation with release process
Original prompt

Automate version bump in package.json as part of the release workflow.

When a new version tag is pushed (e.g., v1.2.3), update the "version" field in package.json to match the tag (without the "v" prefix), commit the change, and push it back to the repository before packaging and attestation steps.

This ensures that the package.json version always matches the release tag, and the generated .vsix file has the correct version.

*This pull request was created as a result of the following prompt from Copilot chat.* > Automate version bump in package.json as part of the release workflow. > > When a new version tag is pushed (e.g., v1.2.3), update the "version" field in package.json to match the tag (without the "v" prefix), commit the change, and push it back to the repository before packaging and attestation steps. > > This ensures that the package.json version always matches the release tag, and the generated .vsix file has the correct version.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@jhaisley jhaisley marked this pull request as ready for review October 7, 2025 12:43
Copilot AI and others added 2 commits October 7, 2025 12:46
Co-authored-by: jhaisley <413583+jhaisley@users.noreply.github.com>
Co-authored-by: jhaisley <413583+jhaisley@users.noreply.github.com>
@jhaisley
Copy link
Copy Markdown
Owner

jhaisley commented Oct 7, 2025

@copilot can you commit the workflow file?

Co-authored-by: jhaisley <413583+jhaisley@users.noreply.github.com>
@jhaisley jhaisley merged commit 019041b into main Oct 7, 2025
@jhaisley jhaisley deleted the copilot/fix-8387b52e-2d88-42a2-a02b-658680beb387 branch October 7, 2025 12:54
Copilot AI requested a review from jhaisley October 7, 2025 12:54
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.

2 participants