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

Ci - Add ChangeSet #3

Merged
merged 8 commits into from
Apr 4, 2024
Merged

Ci - Add ChangeSet #3

merged 8 commits into from
Apr 4, 2024

Conversation

suddenlyGiovanni
Copy link
Owner

@suddenlyGiovanni suddenlyGiovanni commented Apr 4, 2024

This PR is focused on the implementation and subsequent modifications regarding the use of @changesets/cli in our project. This work was carried out through a series of steps, defined by the following commits in chronological order:

  • feat(pnpm-lock.yaml): Add multiple packages related to '@changesets/cli' The @changesets/cli package was introduced into the project, along with related packages, updating the pnpm-lock.yaml and package.json.

  • chore(changeset): changeset init Initial setup files and documentation for @changesets/cli were created, helping developers to effectively version and publish their code.

  • ci(github-workflows): add changesets requirement check to PR workflow A requirement for changesets was added to the pull request workflow, which enforces that no PR can be merged into main without a corresponding changeset.

  • ci(.github): Add Release workflow A new GitHub Action workflow was introduced which sets up Node.js with pnpm, manages dependencies installation as well as caching and release automation.

  • chore(package.json): add changeset scripts Three new scripts were added to package.json to enable convenient use of the 'changeset' command.

  • chore(changeset): Set up changeset cli and CI The @changesets/cli build tool was further configured for versioning and publishing, with added GitHub Action workflows and updated pull request checks.

  • fix(pull-request-checks-workflow): update changeset status reference The changeset command was updated in the pull-request checks workflow with reference changed from 'main' to 'origin/main'.

Through the implementation of @changesets/cli and the related modifications, we are expecting to handle package versioning more effectively and maintain detailed, autogenerated changelogs. This will contribute to the preservation of precise versioning and release information throughout the project's lifecycle.

This commit introduces a new .npmrc file with default configurations. It includes uptions to auto-install peer dependencies, dedupe peer dependents, set an empty save-prefix, mark the default tag as 'latest', and set the node-linker as 'isolated'.
All the changes to pnpm-lock.yaml in this commit are package additions
that center around '@changesets/cli' package. The dependencies included
are for '@changesets/cli', '@babel', and several utilities, including
'string-width', 'strip-ansi', 'wrap-ansi', and 'cliui'. The commit also
includes several relevant '@types' packages.

Signed-off-by: Giovanni Ravalico <[email protected]>
The changes introduce a new configuration file and README for the
changeset package. These files provide the initial setup and
documentation for using the `@changesets/cli` build tool for versioning
and publishing code.

Signed-off-by: Giovanni Ravalico <[email protected]>
Adds a new step in the pull request checks workflow that requires
changesets. This ensures that no pull request can be merged into the
main branch without a corresponding changeset, helping preserve accurate
project history.

Signed-off-by: Giovanni Ravalico <[email protected]>
This commit introduces a new GitHub Action workflow. This workflow is
responsible for code checkout, setup of Node.js with pnpm, dependencies
installation, also caching and release automation. Now, every push to
the main branch will trigger this release workflow.

Signed-off-by: Giovanni Ravalico <[email protected]>
Copy link

changeset-bot bot commented Apr 4, 2024

🦋 Changeset detected

Latest commit: 8b500cc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@suddenly-giovanni/resume Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Three new scripts are added to the scripts section in package.json. They
 allow using 'changeset' command more conveniently: "changeset:add",
 "changeset:version", and "changeset:publish".

Signed-off-by: Giovanni Ravalico <[email protected]>
Introduced a GitHub Action workflow involved in code checkout, Node.js
setup with pnpm, dependencies installation, caching, and release
automation. Enhanced PR checks workflow to validate the presence of
changesets before merging into main. Also, set up and documented
`@changesets/cli` build tool for versioning and publishing code, adding
it along with several related packages to the project dependencies.

Signed-off-by: Giovanni Ravalico <[email protected]>
This commit updates the changeset status command in the pull request
checks workflow. The reference for the changeset status command has been
 changed from 'main' to 'origin/main'. This makes it more explicit and
 might address potential issues where the checker failed due to
 incorrect branch reference.

Signed-off-by: Giovanni Ravalico <[email protected]>
@suddenlyGiovanni suddenlyGiovanni changed the title Ci/changeset Ci - Add ChangeSet Apr 4, 2024
@suddenlyGiovanni suddenlyGiovanni merged commit 2c775ff into main Apr 4, 2024
6 of 7 checks passed
@suddenlyGiovanni suddenlyGiovanni deleted the ci/changeset branch April 4, 2024 19:27
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