Giter Site home page Giter Site logo

changesets-release-test's Introduction

Install Changesets

pnpm add -Dw @changesets/cli
pnpm changeset init

update version

first, add changeset

pnpm changeset

then, you'll see the changeset's cli for updating version.

pnpm changeset version

set the selected package's version, update CHANGELOG.md.

pnpm install

update the lockfile and rebuild packages.

generate version tag

If you don't wanna publish it (like me ๐Ÿ˜ญ) You might run additional command for generating version tag.

It is possible to input the command line below.

pnpm changeset tag

Changesets are automatically generated

Changesets are generated by the yarn changeset or npx changeset command. As long as you are following a changeset release flow, you shouldn't have any problems.

Each changeset is its own file

We use random human readable names by default for these files to avoid collisions when generating them, but there's no harm that will come from renaming them.

Changesets are automatically removed

When changeset version or equivalent command is run, all the changeset folders are removed. This is so we only ever use a changeset once. This makes this a very bad place to store any other information.

Changesets are markdown files with YAML front matter

The two parts of the file are for different purposes. You should feel free to edit both parts as much as you want.

  • The markdown text is a summary of the changes that will be prepended to your changelog when you next run your version command.
  • The YAML front matter describes what should be versioned by the version command

I want to edit the summary or package bump types - is it safe to do that?

Editing the summary or package bump types is completely safe. You can even write changesets without the command if you want.

Can I manually delete changesets?

You can, but you should be aware this will remove the intent to release communicated by the changeset, and should be done with caution.


CICD

changesets now provides @changesets/action@v1, which creates a pull request with all of the package versions updated and changelogs updated and when there are new changesets on your configured baseBranch, the PR will be updated.

see: Changesets Release Action

and pnpm also provides workflow code: Using Changesets with pnpm

if you write workflow correctly, then PR is automatically created. LIKE THIS BELOW:

image

when you update changeset version, then changeset will update PR

changesets-release-test's People

Contributors

github-actions[bot] avatar jengyoung avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.