Commit Graph
154 Commits
Author SHA1 Message Date
David RegisterandMateusz Burzyński 993a0a090d Added pullRequestNumber to the action's outputs (#167)
* feat: set pullRequesstNumber as action output

* chore: add changeset

* fix: feedback from pr review

* Update .changeset/long-mayflies-yell.md

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2022-04-07 19:10:26 +02:00
github-actions[bot] c7c59f0c6f Version Packages (#163) 2022-03-15 15:11:12 +01:00
Russell Bicknell 52c9ce75d9 Change directory to cwd before running git user setup. (#161) 2022-03-15 15:07:12 +01:00
Will WeaverandMateusz Burzyński b0aaf6aed5 Document hasChangesets output (#136)
* Add shouldPublish output

* Update README.md

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>

* Remove changeset

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2022-03-14 15:27:53 +01:00
Mateusz Burzyński 5766bae8d9 Add concurrency to the local Changesets workflow 2022-03-04 10:27:57 +01:00
github-actions[bot]andgithub-actions[bot] 69dae4d9ca Version Packages (#145)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-04 08:30:04 +01:00
Mateusz Burzyński 56bd5e54f8 Add concurrency option to the exampels in the README (#156) 2022-03-04 07:27:33 +01:00
Mateusz Burzyński 898d125cee Updated all Changesets dependencies (#144) 2022-01-27 07:36:21 +01:00
github-actions[bot]andgithub-actions[bot] e8ffc2d207 Version Packages (#140)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-23 14:27:10 +01:00
David RegisterandMateusz Burzyński 1ed9bc24b7 Added cwd input option (#134)
* feat: add cwd for projects that not in the root directory

* docs: add cwd to README

* reword the added log

* tweak changeset

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2022-01-23 14:25:45 +01:00
An PhiandMateusz Burzyński 5c0997b25e Added createGithubReleases input option (defaults to true) to control whether to create Github releases during publish or not (#130)
* allow skipping creation of Github releases

* fixes for PR review

* minor improvements

* add changeset

* nits

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2022-01-23 11:07:42 +01:00
github-actions[bot]andgithub-actions[bot] f4afbea27e Version Packages (#129)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-07 16:41:51 +01:00
Jack LeslieandMitchell Hamilton d3db9eceaf Added setupGitUser option to enable or disable setting up a default git user (#131)
* custom git user option

* Create two-dolls-promise.md

* Update two-dolls-promise.md

* change input name and update default

* Update .changeset/two-dolls-promise.md

Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
2022-01-07 15:27:29 +01:00
Mateusz Burzyński e0c51a52b8 Fix changeset author attribution 2021-12-23 11:31:32 +01:00
Mateusz BurzyńskiandDhruvdutt Jadhav 19373036c4 Setup the git user in the local config instead of the global one (#128)
* Update gitUtils.ts

* add changeset

Co-authored-by: Dhruvdutt Jadhav <dhruvdutt.jadhav@razorpay.com>
2021-12-23 11:21:40 +01:00
Mateusz Burzyński 37c2edd85b Fixed the checkout repo step in ci.yml 2021-11-26 14:18:16 +01:00
Mitchell Hamilton 5556dd0a57 Reference specific versions of other actions (#122) 2021-11-26 10:23:11 +01:00
2eadeb0ff8 Version Packages (#119)
* Version Packages

* Fixup version bump

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2021-11-25 18:07:53 +01:00
Mateusz Burzyński 3ea945d945 Rename version script to bump 2021-11-25 18:02:16 +01:00
Mateusz Burzyński 77633d0426 Fixed how local action is referenced from the workflow file 2021-11-25 17:53:46 +01:00
Mateusz BurzyńskiandNicola Molinari 05c863d3f9 Switch to Changesets-based release process (#118)
* Switch to Changesets-based release process

* Bump version

* drop unused variable

* Update .github/workflows/version-or-publish.yml

Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>

* Push also to a release line branch when releasing

* Change node version used in the version-or-publish workflow

* Switch to using the local action

Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>

* build the action before trying to use it the workflow

* Add changeset and actually setup Changesets, lol

Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
2021-11-25 17:51:48 +01:00
Nicola MolinariandMateusz Burzyński 21240c3cd1 Fixed authToken detection in the user .npmrc (allow for leading whitespace) (#116)
* fix: adjust regex to include leading whitespaces

* tweak regexp

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2021-11-11 17:26:06 +01:00
Mateusz Burzyński 8090f2a918 Add authToken for the npm registry to user-level .npmrc if it is not there (#110) 2021-11-09 06:28:22 +01:00
Kevin Schaaf b98cec9758 Update @manypkg/get-packages to fix some Lerna monorepos detection (#113) 2021-10-08 11:06:58 +02:00
Mateusz Burzyński c3d88279fd Add hasChangesets output (#102) 2021-08-19 08:32:25 +02:00
Jon RohanandMateusz Burzyński c291823920 Set the name of created releases - which ends up as its title in the UI (#84)
* Sending name: argument to createRelease

* Rebuild the dist file

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2021-04-07 18:26:15 +02:00
Mateusz Burzyński aacbc22392 Avoid changing HEAD when executing publish (#81) 2021-03-23 11:04:41 +01:00
Mateusz Burzyński b5c0c12a1d Throw custom error for MODULE_NOT_FOUND when loading @changesets/cli (#76) 2021-03-22 11:35:40 +10:00
Jacob Gillespie 640c4a5d64 Switch to using resolve-from rather than require.resolve (#71) 2021-02-16 00:36:35 +01:00
Jacob Gillespie bf4c612018 Require @changesets/cli resolving from cwd (#67)
* Resolve @changesets/cli with resolve-from

* Use require.resolve directly

* Add documentation section to README

* Add custom version command docs for Yarn 2
2021-02-15 18:51:03 +01:00
dependabot[bot] b3300fad33 Bump dot-prop from 4.2.0 to 4.2.1 (#62)
Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/sindresorhus/dot-prop/releases)
- [Commits](https://github.com/sindresorhus/dot-prop/compare/v4.2.0...v4.2.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 11:03:35 +01:00
Mateusz Burzyński 6c6b3b9bb0 Fixed an issue with the action crashing on commit attempts in projects with commit: true (#61) 2020-11-30 08:10:04 +01:00
Mateusz Burzyński bfeb9e077e Fixed an issue with treating single package repositories without changesets as versioned at all times (#41) 2020-07-07 10:06:02 +10:00
Mateusz Burzyński a56ea2d6eb Setup GitHub action for running tests (#39) 2020-07-06 20:34:25 +10:00
Mateusz Burzyński 2c7afd615c Upgrade @actions/* packages (#40) 2020-07-06 20:33:19 +10:00
Mateusz Burzyński d846247242 Remove leftover comment 2020-07-06 11:29:23 +02:00
Mateusz Burzyński cd904b92c7 Fixed an issue with ignored package being included in PR body incorrectly (#38) 2020-07-06 19:08:41 +10:00
Mateusz Burzyński c240b08dfb Reformat files using Prettier 2020-06-30 21:25:45 +02:00
Mateusz Burzyński 5ad76cdc8b Add support for the simplified tag for single-package repositories (#35) 2020-06-25 07:26:50 +10:00
Mateusz Burzyński 07f96a1a01 Add prettier 2020-06-22 08:35:01 +02:00
Mateusz Burzyński 6035d31341 Migrate away from deprecated get-workspaces (#34) 2020-06-22 08:17:36 +10:00
Nicola Molinariandmitchellhamilton 6f5135b203 fix: respect .npmrc if already present (#30)
* fix: respect .npmrc if already present

* Update dist file

Co-authored-by: mitchellhamilton <mitchell@hamil.town>
2020-05-09 08:03:53 +10:00
Daniel Del Core e49f223776 Add link to NPM 2fa docs (#28) 2020-04-30 19:23:25 +10:00
ocavueandMitchell Hamilton 2eb58c89dc Add input variables commit and title (#27)
* Add input variables `commit` and `title`

* Update action.yml

Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
2020-04-29 12:29:15 +10:00
ocavue dfa783e7bc Add outputs variable published and publishedPackages (#26)
* Add outputs variable `published`

* publishedPackages
2020-04-20 15:11:58 +10:00
Luis Herranzandmitchellhamilton d6b65536ef Add parameter to control version script (#23)
* Add version script

* Run build

Co-authored-by: mitchellhamilton <mitchell@hamil.town>
2020-04-15 06:56:31 +10:00
mitchellhamilton 65b9570cef Merge branch 'master' of https://github.com/changesets/action 2020-02-14 11:09:50 +11:00
mitchellhamilton 36242b9bc1 Use the changesets bin.js to run version because pnpm has a different strategy for binaries which means the file in .bin isn't a js file 2020-02-14 11:08:07 +11:00
Mateusz Burzyński a3c8cda6e1 Bring back former PR title (#20) 2020-01-31 07:22:02 +11:00
mitchellhamilton a082fd726f Fix a typo 2020-01-30 08:03:10 +11:00