Bjorn Lu
88338839e3
Handle error when pushing git tags with the git CLI ( #735 )
...
* Handle error when pushing git tags with the git CLI
* Update message
2026-09-07 11:45:47 +00:00
Bjorn Lu
e08fde7435
Improve log messages ( #730 )
2026-09-04 18:07:20 +00:00
Bjorn Lu
ca8589735a
Always prepare branch for version ( #729 )
...
* Always prepare branch for version
* Update test
2026-08-31 08:18:49 +00:00
Bjorn Lu
36f529f13a
Fix root action double error logs ( #724 )
2026-08-22 10:32:21 +00:00
Szajkovics Sándor and Bjorn Lu
da1ea291ef
Fix typo in renamed inputs ( #721 )
...
* fix: mesage typoo in renamed inputs
* chore: add changeset
* Apply suggestion from @bluwy
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com >
2026-08-13 07:10:14 +00:00
Mateusz Burzyński
3043070b0d
Prevent test warning annotations ( #720 )
2026-08-13 00:50:23 +00:00
Bjorn Lu
3b7c71c440
Add back cwd input ( #718 )
2026-08-12 13:10:39 +00:00
Bjorn Lu
6f58ba3580
Update pr-status message links to new faq ( #716 )
2026-08-12 10:34:14 +00:00
Mateusz Burzyński
5fa67671df
Fix support for prerelease exits using the new .changeset/pre layout ( #711 )
...
* Fix prerelease exit mode selection
* Improve prerelease exit changeset wording
2026-08-11 11:00:37 +00:00
Mateusz Burzyński
77be81bcb9
Fixed a regression making it impossible to sync new versions of versioning pull requests with base branch updates ( #705 )
...
* Fixed a regression making it impossible to sync new versions of versioning pull requests with base branch updates when using GitHub API pushes
* update ghcommit
2026-08-03 12:03:51 +00:00
Mateusz Burzyński
cb3f0110d7
Use GitHub API for pushes by default and require explicit github-token when using custom tokens ( #692 )
...
* Ensure `github-token` wins for `git-cli` pushes
* more shenanigans
* Default to GitHub API commit mode
* e2e auth tests
* push missing utils
* rename input
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* reuse helpers
* refactor
* refactor
* simplify
* add tests
* refactor
* improve comments
* shift helper
* add comments
* extract test helpers
* update docs and changesets
* update one thing
2026-08-03 11:02:31 +00:00
Mateusz Burzyński
219ea82e52
Remove setup-git-user in favor of setting fallback only when identity is missing ( #688 )
...
* Experiment with skipping setup-git-user more often
* drop setup-git-user
* fix tests
2026-07-27 05:02:39 +00:00
Bjorn Lu
469993ce57
Remove npm auth handling in favor of docs ( #695 )
...
* Add docs for npm auth setup
* Show bash examples
* Improve bash pattern
* Update and reference docs
* Remove setup auth code
* Update
* Update
* Update
2026-07-24 15:24:09 +00:00
Mateusz Burzyński
5b307d3df2
Validate that projects use Changesets CLI v3 and direct Changesets CLI v2 users to changesets/action@v1 ( #699 )
...
* Validate that projects use Changesets CLI v3 and direct Changesets CLI v2 users to `changesets/action@v1`
* better spy/mocking
* fmt
* shuffle
2026-07-23 09:34:32 +00:00
Mateusz Burzyński
84d78c68f9
Allow custom publish scripts to complete without a Changesets output file ( #697 )
2026-07-22 06:31:15 +00:00
Bjorn Lu
73591071e6
Rename root action inputs and outputs ( #681 )
2026-07-01 12:08:50 +00:00
Mateusz Burzyński
f71ae043ed
Expect publish output to be shared through a file ( #678 )
...
* Expect publish output to be shared through a file
* throw at all times
* match latest changes
* fmt
* rename things
* update changesets
* add changeset
2026-07-01 09:08:14 +00:00
Bjorn Lu
ca57073900
Split git tag and github release options ( #680 )
...
* Split git tag and github release options
* Rename to push-git-tags
* Validate inputs
2026-07-01 07:30:13 +00:00
Bjorn Lu
0eae789230
Rename to kebab-case for root action inputs and outputs ( #668 )
...
* Rename to kebab-case for root action inputs and outputs
* Throw on renamed inputs
2026-06-30 08:24:21 +00:00
Bjorn Lu
164652bdd6
Remove GITHUB_TOKEN env var support ( #674 )
2026-06-30 00:20:57 +00:00
Bjorn Lu and Mateusz Burzyński
a35a66bd1e
Update @changesets/ghcommit to v3 beta ( #675 )
...
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2026-06-25 11:01:17 +00:00
Bjorn Lu and Mateusz Burzyński
823cf741ca
Update to changesets v3 packages ( #673 )
...
* Update to changesets v3 packages
* Dedupe
* Fix test
* Fix test 2
* update more
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2026-06-25 10:58:02 +00:00
Mateusz Burzyński
5a8b9b721b
Avoid putting the github token in the global .netrc file ( #670 )
...
* Avoid putting the github token in the global `.netrc` file
* fix wording
2026-06-24 10:07:11 +00:00
Mateusz Burzyński
dc29b738b5
Fix the /version subaction to not crash on missing pr-base-branch input ( #666 )
...
* use `getOptionalInput` consistently
* introduce `getRequiredInput`
* add changeset
2026-06-23 11:26:43 +00:00
Mateusz Burzyński
ccb38113ea
Fix the computed publish plan path passed internally to changeset pack by the /pack subaction ( #663 )
...
* Fix the computed publish plan path passed internally to `changeset pack` by the `/pack` subaction
* fix it
2026-06-23 10:00:39 +00:00
Mateusz Burzyński
5c88881fff
Fixed usage of --from-publish-plan flag used by the /pack subaction ( #662 )
2026-06-23 09:25:48 +00:00
Bjorn Lu and Mateusz Burzyński
a12d90de83
Add select-mode, version, pack and publish sub-actions ( #656 )
...
* Add select-mode, version, and publish sub-actions
* Rename
* No github-token needed for select-mode for now
* extend select-mode with publish-plan check and upload
* Rename base-branch to pr-base-branch
* add `pack` subaction
* `--from-pack` support in the publish subaction
* rename CLI arg
* update rolldown config
* rename pack dir input/output
* tweak retendion days
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2026-06-23 06:42:37 +00:00
Bjorn Lu
5649ff41b8
Remove cwd option ( #659 )
2026-06-23 06:35:46 +00:00
Mateusz Burzyński
4f718b5921
Removed compatibility support for old Changesets v1 ( #657 )
2026-06-15 08:03:20 +00:00
Bjorn Lu
b072bccc4c
Add simple PR comment sub-action ( #636 )
...
* Add simple PR comment sub-action
* Update rolldown config
* Add changeset
* Update readme
* Use TLA
* Add prefix
* fix merge
* Update
2026-05-30 19:39:39 +00:00
Bjorn Lu and Mateusz Burzyński
8795eee5ee
Comment changeset status in PRs ( #625 )
...
* Initial implementation
* Fix
* fix
* fix
* Make it look nicer
* Update docs
* Rename to pr-status-comment
* Remove outputs
* Update path
* update name
* Checkout PR in a detached worktree (#626 )
Co-authored-by: bluwy <bjornlu.dev@gmail.com >
* Move comment to separate job
* Loosen event requirement
* Update
* Apply suggestions from code review
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
* Use TLA
* use using
* Remove test log
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2026-05-29 12:27:24 +00:00
Mateusz Burzyński and Bjorn Lu
34f64f6e2e
Fixed an issue with GitHub releases not being created for successfully published packages when some packages failed to be published ( #535 )
...
* Fixed an issue with GitHub releases not being created for successfully published packages when some packages failed to be published
* Format
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com >
2026-05-29 06:48:06 +00:00
Bjorn Lu
1d54b9e660
Simplify getChangelogEntry ( #632 )
2026-05-27 15:41:11 +00:00
Bjorn Lu
e0c90aa7fb
Fix version/publish arg parsing ( #629 )
2026-05-25 09:12:32 +00:00
Bjorn Lu
f1222b6286
Refactor to fs-fixture ( #622 )
2026-05-18 10:03:43 +00:00
Bjorn Lu
6c80731937
Migrate to oxfmt ( #618 )
...
* Migrate to oxfmt
* Enable import sorting
* trailingComma always
2026-05-15 11:48:55 +00:00
Marco Pasqualetti and Mateusz Burzyński
04ba326779
migrate to pnpm ( #609 )
...
* migrate to `pnpm`
* rename `simple-project` fixture packages to remove socket security errors
* add pnpm `dedupe` options
* update release-pr workflow
* update
* update snashots
* tweaks
* tweak
* tweak
* fix missing ci-setup
* tweak
* tweak deps
* update pnpm
* ok, Socket, let's rename them
* update snapshots
* rename again
* fmt
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2026-05-14 09:04:38 +00:00
f5dbf72f96
Add draft mode support ( #258 )
...
* Add draft mode support
* Add doc
* fmt
* add it to action.yml
* fix bad merge?
* tweak changeset
* refactor
---------
Co-authored-by: Emma Hamilton <mitchell@hamil.town >
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2026-05-07 11:35:24 +02:00
Rafi Adnan and Mateusz Burzyński
81b3f61ebf
Fixed .changeset state being picked for the version command when cwd parameter is provided ( #536 )
...
* actually use cwd parameter when reading changeset state
* tweak changeset
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2026-03-31 17:47:34 +02:00
Oleksii Shytikov and Mateusz Burzyński
6002dbd987
Fix reading .changeset directory from path provided in cwd parameter ( #502 )
...
* Adding informational message about resolved `cwd` location
* Reading changesets information from provided folder
* Adding changeset information
* Apply suggestion from @Andarist
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2026-03-31 17:38:41 +02:00
Mateusz Burzyński
935fe876b0
Automatically use the GitHub-provided token to allow most users to avoid explicit GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} configuration ( #564 )
2026-01-29 09:35:17 +01:00
Mateusz Burzyński
746b247c1c
Tweak logging related to NPM_TOKEN/OIDC auth ( #566 )
2026-01-28 07:35:01 +01:00
54220dd92c
Conditionally append NPM_TOKEN to .npmrc ( #545 )
...
* fix: conditionally append NPM_TOKEN to .npmrc for trusted publishing support
The .npmrc generation now intelligently handles both traditional NPM token
authentication and trusted publishing scenarios:
- Only appends auth token to .npmrc when NPM_TOKEN is defined (not undefined)
- Uses strict comparison (!== undefined) instead of truthy checks
- Provides informative logging when no NPM_TOKEN is present
- Maintains full backward compatibility with existing workflows
This fixes issues with trusted publishing where OIDC tokens from GitHub
Actions are used instead of NPM_TOKEN, preventing 'undefined' from being
written to the registry auth configuration.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
* Update src/index.ts
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
* simplify
* tweak changeset
---------
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2026-01-27 23:14:11 +01:00
Mateusz Burzyński
5078b4b48b
Migrate to ESM ( #484 )
...
* Migrate to ESM
* just use `require.resolve`
* reuse setup action
* checkout PR head for a sec
* ls things
* try a thing
* the dirname had a trailing whitespace, lol
2025-05-16 11:39:43 +02:00
Sam Lanning and Mateusz Burzyński
7ed1955546
Fixed situations in which cwd was specified as a relative path and used with (default) commitMode: git-cli ( #486 )
...
* fix: use latest ghcommit and fix cwd for git-cli
- `cwd` was not working correctly when commitMode was set to `git-cli`,
as it was attempting to resolve the `cwd` twice.
(This problem only occured when specifying a relative path for `cwd`.)
- Update `ghcommit`, and avoid calling `process.chdir()` to change the
working directory. Instead, we now pass the `cwd` option everywhere.
fixes #475
* simplify
* Apply suggestions from code review
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2025-05-16 11:25:00 +02:00
Sam Lanning and Mateusz Burzyński
022692ba02
Fix PRs sometimes not getting reopened with commitMode: github-api ( #488 )
...
* Fix PRs sometimes not getting reopened
There was a race-condition that means sometimes
existing PRs would not be found,
and new PRs would be opened.
This has now been fixed by fetching existing PRs
before making any changes.
fixes #487
* Apply suggestions from code review
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2025-05-15 21:46:15 +02:00
Mateusz Burzyński
0564b8428f
Removed fs-extra dependency ( #481 )
...
* Removed `fs-extra` dependency
* use `fs/promises` consistently
2025-05-15 21:41:09 +02:00
Mateusz Burzyński
e82f42c2cc
Migrate to Vitest ( #483 )
...
* Migrate to Vitest
* `skipLibCheck` for now
2025-05-11 20:59:28 +02:00
Mateusz Burzyński
ad037f48d0
Import only for semver/functions/lt ( #482 )
2025-05-11 12:21:44 +02:00
Younsang Na and Mateusz Burzyński
e9c36b6964
Avoid hitting a deprecation warning when encountering errors from @octokit/request-error ( #461 )
...
* fix: use status when http err
* tweak code
* add changeset
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2025-05-11 11:15:02 +02:00