Skip to content

Commit cf7defc

Browse files
committed
chore: remove auto configuration and related dependencies
- Deleted auto.config.js file and removed associated packages from package.json. - Updated README.md to remove references to release labels. - Modified publish workflow to streamline publishing process for alpha and stable versions.
1 parent 9dcf684 commit cf7defc

File tree

4 files changed

+18
-133
lines changed

4 files changed

+18
-133
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
fetch-depth: 0
3030
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
3131

32+
- name: Get branch name
33+
id: branch-name
34+
uses: tj-actions/branch-names@v8
35+
3236
- name: Set git user
3337
run: |
3438
git config --global user.email "[email protected]"
@@ -39,12 +43,25 @@ jobs:
3943

4044
- run: yarn turbo run build --concurrency=3
4145

46+
- name: Publish Alpha
47+
# Only publish alpha on non-main branches
48+
if: steps.branch-name.outputs.is_default != 'true'
49+
env:
50+
HUSKY_ENABLED: true
51+
GH_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
52+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
53+
run: |
54+
npx lerna publish --yes --canary --dist-tag=alpha.${GITHUB_SHA:0:6} --preid=alpha.${GITHUB_SHA:0:6}
55+
4256
- name: Publish
57+
# Only publish the non-alpha version on main
58+
if: steps.branch-name.outputs.is_default == 'true'
4359
env:
4460
HUSKY_ENABLED: true
4561
GH_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
4662
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47-
run: npx auto shipit
63+
run: |
64+
npx lerna publish --yes --exact --conventional-commits --changelog-preset conventionalcommits --include-merged-tags --create-release=github
4865
4966
publish-check:
5067
runs-on: ubuntu-22.04

README.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -64,35 +64,6 @@ The config for Turborepo is located at [/turbo.json](/turbo.json).
6464

6565
To use Turborepo without extra configuration, if your package needs to be compiled, it should have a task called `build` that compiles it's files and puts them into a directory called `dist` inside the package directory. If you need a more complicated setup, you can read the docs and customize the configuration in `turbo.json`.
6666

67-
**Release Labels**
68-
69-
These labels will mark your PR as ready for release. They will trigger a release of the package(s) you changed once your PR is merged.
70-
71-
- **release/major**: Increments the major version number of the package(s) you changed
72-
- **release/minor**: Increments the minor version number of the package(s) you changed
73-
- **release/patch**: Increments the patch version number of the package(s) you changed
74-
- **release/performance**: Increments the patch version number of the package(s) you changed
75-
76-
These labels will not create a release by default, but will if combined with one of the above labels:
77-
78-
- **release/dependencies**: Changes to dependencies
79-
- **release/internal**: Changes to internal code
80-
- **release/tests**: Changes to tests
81-
82-
The skip label will prevent a release from being created. You can merge multiple PRs with this label, and then merge a PR without it to create a release from all of them at once.
83-
84-
- **release/skip**: Skips the release process for the package(s) you changed
85-
86-
**Scope**
87-
88-
A scope is optional and consists of a noun describing a section of the codebase surrounded by parenthesis, e.g., feat(Button):
89-
90-
**Breaking Changes**
91-
92-
Using the **release/major** label will bump the major version number of the package(s) you changed, which indicates that your changes are not backwards compatible with previous versions of the package(s).
93-
94-
This will indicate to package consumers that they need to refactor their usage of the module to upgrade.
95-
9667
#### Breaking Changes Release Process
9768

9869
Because client-modules is a separate repository from its consumers, it can be tricky to coordinate technically breaking changes.

auto.config.js

Lines changed: 0 additions & 98 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@
4848
"lerna": "3.22.1"
4949
},
5050
"devDependencies": {
51-
"auto": "^11.1.6",
52-
"@auto-it/all-contributors": "^11.0.4",
53-
"@auto-it/first-time-contributor": "^11.0.4",
54-
"@auto-it/npm": "^11.0.4",
55-
"@auto-it/released": "^11.0.4",
5651
"@babel/cli": "7.13.10",
5752
"@babel/core": "7.19.6",
5853
"@babel/preset-typescript": "^7.13.0",

0 commit comments

Comments
 (0)