Skip to content

Commit

Permalink
chore(ci): Add changesets (#1160)
Browse files Browse the repository at this point in the history
Co-authored-by: dougfabris <[email protected]>
  • Loading branch information
tassoevan and dougfabris authored Sep 13, 2023
1 parent 8782385 commit d1a5fb1
Show file tree
Hide file tree
Showing 5 changed files with 1,010 additions and 17 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/[email protected]/schema.json",
"changelog": "@changesets/changelog-git",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "develop",
"updateInternalDependencies": "patch",
"ignore": []
}
7 changes: 5 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,13 @@ jobs:
if: steps.yarn-cache.outputs.cache-hit != 'true'
- run: yarn resolve-workspace-deps
if: github.ref == 'refs/heads/master'
- run: yarn lerna publish from-package --yes --no-verify-access
- uses: changesets/action@v1
with:
publish: yarn release
if: github.ref == 'refs/heads/master'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: yarn bump-next
if: github.ref == 'refs/heads/develop'
- run: yarn release-next
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"tools/*"
],
"devDependencies": {
"@changesets/cli": "~2.26.2",
"bump": "workspace:~",
"husky": "~7.0.4",
"hygen": "~6.1.5",
Expand All @@ -30,6 +31,7 @@
"resolve-workspace-deps": "yarn workspace scripts run resolve-workspace-deps",
"create-package": "hygen create-package",
"bump-next": "yarn workspaces foreach --no-private -v run bump-next",
"release": "yarn changesets publish",
"release-next": "yarn workspaces foreach --no-private -v npm publish --tag next --tolerate-republish"
},
"devEngines": {
Expand Down
Loading

0 comments on commit d1a5fb1

Please sign in to comment.