Skip to content

Commit

Permalink
build: change semantic-release to changeset (#247)
Browse files Browse the repository at this point in the history
* chore: add changeset

* chore: remove sematic-release

* docs: update contributing guide
  • Loading branch information
SoYoung210 authored Dec 11, 2023
1 parent 80f12bf commit a2f2b0a
Show file tree
Hide file tree
Showing 282 changed files with 1,821 additions and 4,721 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
21 changes: 10 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,16 @@ on:
jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v2
with:
# do not change this version, because of semantic-release, npm whoami bug
# see with https://github.com/semantic-release/npm/issues/470
node-version: 16.15.0
- name: Setup Node.js 16.x
uses: actions/setup-node@v3
- name: Install dependencies
run: yarn install --immutable
- name: Check Type
Expand All @@ -33,8 +30,10 @@ jobs:
run: yarn test
- name: Build Package
run: yarn build
- name: Release to npm registry
run: yarn semantic-release
- name: Release or Versioning
uses: cometkim/yarn-changeset-action@v1
with:
autoPublish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3,226 changes: 822 additions & 2,404 deletions .pnp.cjs

Large diffs are not rendered by default.

27 changes: 0 additions & 27 deletions .releaserc.json

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/asn1-npm-0.2.6-bdd07356c4-39f2ae343b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/jsbn-npm-0.1.1-0eb7132404-e5ff29c1b8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/mime-npm-3.0.0-8d911e4c06-f43f9b7bfa.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/npm-npm-7.24.2-2d399d9f82-8d818fd4f8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/qs-npm-6.5.2-dbf9d8386b-24af7b9928.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/read-npm-1.0.7-950ec74ca8-2777c254e5.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 1 addition & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ If you have been assigned to fix an issue or develop a new feature, please follo
- To run Storybook.
- Document your changes in the appropriate doc page
- Git stage your required changes and commit (see below commit guidelines)
- also need to run `yarn changeset`
- Submit PR for review

## Commit message conventions
Expand Down Expand Up @@ -101,7 +102,3 @@ If the commit reverts a previous commit, it should begin with `revert:`, followe
Maintainers merge pull requests by squashing all commits and editing the commit message if necessary using the GitHub user interface.

Use an appropriate commit type. Be especially careful with breaking changes.

## Releases

For each new commit added to `master` with `git push` or by merging a pull request or merging from another branch, a github action is triggered and runs the `semantic-release` command to make a release if there are codebase changes since the last release that affect the package functionalities.
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,12 @@
},
"devDependencies": {
"@babel/core": "7.16.7",
"@changesets/cli": "^2.26.0",
"@commitlint/cli": "16.0.2",
"@commitlint/config-conventional": "16.0.0",
"@emotion/react": "11.7.1",
"@emotion/styled": "11.6.0",
"@mdx-js/react": "2.1.5",
"@semantic-release/commit-analyzer": "9.0.2",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "8.0.2",
"@semantic-release/npm": "8.0.3",
"@semantic-release/release-notes-generator": "10.0.3",
"@storybook/addon-actions": "6.5.13",
"@storybook/addon-docs": "6.5.13",
"@storybook/addon-essentials": "6.5.13",
Expand Down Expand Up @@ -93,8 +89,6 @@
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"rimraf": "3.0.2",
"semantic-release": "18.0.1",
"semantic-release-monorepo": "7.0.5",
"ts-jest": "27.1.2",
"ts-node": "10.4.0",
"typescript": "4.5.4"
Expand All @@ -109,7 +103,6 @@
"lint": "yarn workspaces foreach -pt --from '@h6s/*' run lint",
"test": "yarn workspaces foreach -pt --from '@h6s/*' run test",
"typecheck": "yarn workspaces foreach -pt --from '@h6s/*' run typecheck",
"semantic-release": "yarn workspaces foreach --from '@h6s/*' run semantic-release",
"build": "yarn workspaces foreach -ptR --from '@h6s/*' run build",
"build:storybook": "build-storybook",
"postinstall": "husky install"
Expand Down
3 changes: 1 addition & 2 deletions packages/calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"test": "yarn run -T jest --config ../../jest.config.js --roots './packages/calendar/src'",
"test:playwright": "playwright test",
"test:cov": "yarn test --coverage",
"test:watch": "yarn test --watch",
"semantic-release": "semantic-release"
"test:watch": "yarn test --watch"
},
"devDependencies": {
"@playwright/test": "1.17.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"test": "yarn run -T jest --config ../../jest.config.js --roots './packages/table/src'",
"test:playwright": "playwright test",
"test:cov": "yarn test --coverage",
"test:watch": "yarn test --watch",
"semantic-release": "semantic-release"
"test:watch": "yarn test --watch"
},
"devDependencies": {
"@playwright/test": "1.17.1",
Expand Down
Loading

0 comments on commit a2f2b0a

Please sign in to comment.