Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce changesets for versioning and publishing #565

Merged
merged 3 commits into from
Jan 26, 2024
Merged

Conversation

Murderlon
Copy link
Member

Versioning and releasing is tedious manual work currently and can only be done by someone with npm access.

This PR

  • Introduces changesets, which manages changelogs, versioning, and (optionally) publishing.
  • New changeset-bot which reminds you to add a changeset.
    • When you create a PR, you include a changeset with yarn changeset. You choose the semverness and description.
    • I will add this bot once this PR is merged, otherwise it will complain on PRs openend before this is merged.
  • A new GitHub Action release which can be triggered manually in the "Actions" tab or locally with yarn release (requires gh CLI to be installed by yourself globally). This opens a PR with the new versions and changelogs. When merged, it publishes the packages to npm. The access token lives in GH so you don't need direct access and publishing is always transparent (anyone can see the PR).
  • New Socket bot to catch common security vulnerabilities and supply chain attacks (not a visible change in this PR)

Warning

I haven't tested the release flow yet as I can't test this action locally. We just have to try and see.

@Murderlon Murderlon requested review from mitjap and fenos January 24, 2024 11:28
@Murderlon Murderlon self-assigned this Jan 24, 2024
Copy link

socket-security bot commented Jan 24, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] Transitive: environment +10 191 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 49.1 kB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment +9 168 kB nicolo-ribaudo
npm/@babel/[email protected] None +1 274 kB nicolo-ribaudo
npm/@changesets/[email protected] filesystem Transitive: environment, eval, shell, unsafe +84 14.8 MB changesets-release-bot
npm/@changesets/[email protected] Transitive: environment, eval, filesystem +62 3.26 MB changesets-release-bot
npm/@changesets/[email protected] None +1 31.9 kB changesets-release-bot
npm/@changesets/[email protected] environment, filesystem, shell Transitive: eval, unsafe +251 24.5 MB changesets-release-bot
npm/@changesets/[email protected] filesystem Transitive: environment, eval +63 3.16 MB changesets-release-bot
npm/@changesets/[email protected] None +1 14.8 kB changesets-release-bot
npm/@changesets/[email protected] Transitive: environment, eval, filesystem +59 3.09 MB changesets-release-bot
npm/@changesets/[email protected] Transitive: environment, eval, filesystem, shell +84 3.6 MB changesets-release-bot
npm/@changesets/[email protected] None 0 5.98 kB changesets-release-bot
npm/@changesets/[email protected] filesystem Transitive: environment, eval, shell +63 2.93 MB changesets-release-bot
npm/@changesets/[email protected] Transitive: environment +7 94.9 kB changesets-release-bot
npm/@changesets/[email protected] Transitive: environment, eval, filesystem +5 798 kB changesets-release-bot
npm/@changesets/[email protected] filesystem Transitive: environment, eval +51 2.89 MB changesets-release-bot
npm/@changesets/[email protected] filesystem Transitive: environment, eval, shell +76 3.21 MB changesets-release-bot
npm/@changesets/[email protected] None 0 22.1 kB changesets-release-bot
npm/@changesets/[email protected] filesystem Transitive: environment, unsafe +9 11.7 MB changesets-release-bot
npm/@manypkg/[email protected] environment, filesystem +13 1.29 MB manypkg-release-bot
npm/@manypkg/[email protected] environment, filesystem Transitive: eval +46 2.71 MB manypkg-release-bot
npm/@types/[email protected] None 0 6.27 kB types
npm/@types/[email protected] None 0 760 kB types
npm/@types/[email protected] None 0 5.81 kB types
npm/@types/[email protected] None 0 23.2 kB types
npm/[email protected] environment 0 26.1 kB jonschlinkert
npm/[email protected] None +2 45.7 kB sindresorhus
npm/[email protected] Transitive: eval +17 336 kB ljharb
npm/[email protected] Transitive: eval +58 3.23 MB ljharb
npm/[email protected] Transitive: eval +56 3.2 MB ljharb
npm/[email protected] None 0 2.34 kB sindresorhus
npm/[email protected] None 0 14.1 kB ljharb
npm/[email protected] None +1 11 kB zkochan
npm/[email protected] None +3 44.3 kB tecfu
npm/[email protected] Transitive: eval +9 197 kB ljharb
npm/[email protected] None +3 33.3 kB sindresorhus
npm/[email protected] None 0 7.45 kB sindresorhus
npm/[email protected] environment +6 85.1 kB sindresorhus
npm/[email protected] filesystem 0 74.8 kB runk
npm/[email protected] environment 0 26.1 kB sibiraj-s
npm/[email protected] None +8 137 kB bcoe
npm/[email protected] None 0 11.1 kB pvorb
npm/[email protected] None +1 36.3 kB qix
npm/[email protected] None 0 9.36 kB dfcreative
npm/[email protected] None 0 550 kB david
npm/[email protected] None 0 668 kB david
npm/[email protected] None 0 538 kB david
npm/[email protected] None +5 3.03 MB david
npm/[email protected] None +2 9.49 kB sindresorhus
npm/[email protected] None 0 2.94 kB sindresorhus
npm/[email protected] None +1 15 kB sindresorhus
npm/[email protected] Transitive: eval +7 157 kB ljharb
npm/[email protected] Transitive: eval +9 197 kB ljharb
npm/[email protected] None 0 9.68 kB sindresorhus
npm/[email protected] environment +3 224 kB jonschlinkert
npm/[email protected] None +1 13.1 kB qix
npm/[email protected] Transitive: eval +56 3.2 MB ljharb
npm/[email protected] Transitive: eval +6 130 kB ljharb
npm/[email protected] None +2 53.3 kB ljharb
npm/[email protected] None +5 144 kB ljharb
npm/[email protected] None 0 2.69 kB jbnicolai
npm/[email protected] None 0 314 kB ariya
npm/[email protected] None 0 6.61 kB vilic
npm/[email protected] environment, filesystem, shell +5 509 kB mrkmg
npm/[email protected] filesystem +17 506 kB mrmlnc
npm/[email protected] Transitive: filesystem +5 41.2 kB sindresorhus
npm/[email protected] filesystem +13 316 kB bluelovers
npm/[email protected] None +1 42 kB ljharb
npm/[email protected] filesystem Transitive: environment +3 178 kB ryanzim
npm/[email protected] Transitive: eval +56 3.2 MB ljharb
npm/[email protected] None 0 16.7 kB ljharb
npm/[email protected] Transitive: eval +10 207 kB ljharb
npm/[email protected] Transitive: eval +10 219 kB ljharb
npm/[email protected] Transitive: eval +5 118 kB ljharb
npm/[email protected] None 0 237 kB orling
npm/[email protected] None 0 5.14 kB sindresorhus
npm/[email protected] None 0 12.8 kB ljharb
npm/[email protected] None 0 3.13 kB sindresorhus
npm/[email protected] Transitive: eval +5 121 kB ljharb
npm/[email protected] None +1 31.5 kB ljharb
npm/[email protected] None 0 25.8 kB nlf
npm/[email protected] None 0 8.4 kB safebyte
npm/[email protected] None +1 378 kB ashtuchkin
npm/[email protected] Transitive: eval +12 329 kB ljharb
npm/[email protected] Transitive: eval +16 328 kB ljharb
npm/[email protected] None 0 4.05 kB qix
npm/[email protected] None +1 27.6 kB ljharb
npm/[email protected] Transitive: eval +11 230 kB ljharb
npm/[email protected] None 0 28.9 kB ljharb
npm/[email protected] None +2 72.5 kB ljharb
npm/[email protected] None +2 52.3 kB ljharb
npm/[email protected] None 0 22 kB ljharb
npm/[email protected] None +2 53.7 kB ljharb
npm/[email protected] None 0 2.62 kB sindresorhus
npm/[email protected] Transitive: eval +11 238 kB ljharb
npm/[email protected] Transitive: eval +10 209 kB ljharb
npm/[email protected] None +2 50.6 kB ljharb
npm/[email protected] None +2 14.9 kB zkochan
npm/[email protected] None +1 42.6 kB ljharb
npm/[email protected] Transitive: eval +15 316 kB ljharb
npm/[email protected] Transitive: eval +10 209 kB ljharb
npm/[email protected] None 0 7.96 kB jonschlinkert
npm/[email protected] None 0 3.43 kB juliangruber
npm/[email protected] None 0 15.1 kB lydell
npm/[email protected] eval Transitive: environment, filesystem +3 757 kB vitaly
npm/[email protected] None 0 10.4 kB isaacs
npm/[email protected] filesystem Transitive: environment +1 49.5 kB ryanzim
npm/[email protected] None 0 22.8 kB doowb
npm/[email protected] None 0 20.3 kB lukeed
npm/[email protected] None 0 5.39 kB eventualbuddha
npm/[email protected] Transitive: environment, eval, filesystem +7 801 kB linusu
npm/[email protected] filesystem +3 25.6 kB sindresorhus
npm/[email protected] None 0 21.5 kB jdalton
npm/[email protected] None 0 9.49 kB sindresorhus
npm/[email protected] Transitive: environment, filesystem +61 1.07 MB sindresorhus
npm/[email protected] None 0 2.97 kB thejameskyle
npm/[email protected] None +3 36.3 kB vdemedes
npm/[email protected] None 0 29.5 kB david
npm/[email protected] Transitive: environment, filesystem +13 414 kB audrey.e
npm/[email protected] None 0 26.5 kB ljharb
npm/[email protected] Transitive: eval +12 309 kB ljharb
npm/[email protected] None 0 3.06 kB sindresorhus
npm/[email protected] None 0 35.1 kB cspotcode
npm/[email protected] None +1 13.3 kB sindresorhus
npm/[email protected] None +1 11.8 kB sindresorhus
npm/[email protected] None +2 19 kB sindresorhus
npm/[email protected] None 0 7.49 kB sindresorhus
npm/[email protected] None 0 4.37 kB sindresorhus
npm/[email protected] Transitive: environment +15 225 kB sindresorhus
npm/[email protected] None 0 4.51 kB jbgutierrez
npm/[email protected] None 0 7.23 kB sindresorhus
npm/[email protected] Transitive: filesystem +6 45.9 kB sindresorhus
npm/[email protected] Transitive: environment, eval, filesystem +23 1.13 MB zkochan
npm/[email protected] environment 0 8.21 kB isaacs
npm/[email protected] None 0 7.47 kB sindresorhus
npm/[email protected] Transitive: environment, filesystem +40 786 kB sindresorhus
npm/[email protected] filesystem Transitive: environment +32 680 kB sindresorhus
npm/[email protected] Transitive: environment, eval, filesystem +7 803 kB zkochan
npm/[email protected] None +3 14.3 kB sindresorhus
npm/[email protected] None 0 27.9 kB benjamn
npm/[email protected] Transitive: eval +14 302 kB ljharb
npm/[email protected] None 0 3.93 kB bcoe
npm/[email protected] filesystem, unsafe 0 5.82 kB sindresorhus
npm/[email protected] environment, filesystem +5 232 kB ljharb
npm/[email protected] Transitive: eval +11 219 kB ljharb
npm/[email protected] Transitive: eval +12 248 kB ljharb
npm/[email protected] Transitive: eval +8 176 kB ljharb
npm/[email protected] Transitive: eval +9 184 kB ljharb
npm/[email protected] Transitive: environment, eval, filesystem +89 4.08 MB tecfu
npm/[email protected] Transitive: environment, filesystem, shell +9 96.1 kB thejameskyle
npm/[email protected] None +3 49.7 kB kemitchell
npm/[email protected] None 0 2.66 kB kemitchell
npm/[email protected] None +2 26.3 kB kemitchell
npm/[email protected] None 0 11.8 kB kemitchell
npm/[email protected] None 0 34.8 kB alexei
npm/[email protected] None +1 586 kB david
npm/[email protected] Transitive: eval +56 3.2 MB ljharb
npm/[email protected] Transitive: eval +56 3.2 MB ljharb
npm/[email protected] Transitive: eval +56 3.2 MB ljharb
npm/[email protected] None 0 3 kB sindresorhus
npm/[email protected] None +1 6.28 kB sindresorhus
npm/[email protected] environment +1 9.76 kB sindresorhus
npm/[email protected] None 0 9.18 kB ljharb
npm/[email protected] environment, shell 0 64.4 kB sindresorhus
npm/[email protected] filesystem +1 29.1 kB raszi
npm/[email protected] None 0 3.85 kB sindresorhus
npm/[email protected] environment, filesystem Transitive: eval +101 7.63 MB tecfu
npm/[email protected] Transitive: eval +16 324 kB ljharb
npm/[email protected] Transitive: eval +16 330 kB ljharb
npm/[email protected] Transitive: eval +16 330 kB ljharb
npm/[email protected] Transitive: eval +16 335 kB ljharb
npm/[email protected] Transitive: eval +18 351 kB ljharb
npm/[email protected] None 0 4.71 kB ryanzim
npm/[email protected] None +4 66.3 kB kemitchell
npm/[email protected] None +2 29.2 kB timoxley
npm/[email protected] Transitive: eval +17 336 kB ljharb
npm/[email protected] None 0 4.04 kB nexdrew
npm/[email protected] Transitive: environment, eval, filesystem +9 810 kB zkochan
npm/[email protected] Transitive: eval +14 299 kB ljharb
npm/[email protected] None +7 122 kB sindresorhus
npm/[email protected] filesystem 0 11 kB oss-bot
npm/[email protected] environment +2 81.9 kB oss-bot

🚮 Removed packages: npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@Murderlon
Copy link
Member Author

Normally the output from Socket is less intense btw 😅

@Murderlon Murderlon merged commit 687f870 into main Jan 26, 2024
4 checks passed
@Murderlon Murderlon deleted the release-tooling branch January 26, 2024 10:03
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.

1 participant