Skip to content

Commit 4386fd2

Browse files
committed
chore: add lerna changes
1 parent 12d14c2 commit 4386fd2

File tree

6 files changed

+2503
-546
lines changed

6 files changed

+2503
-546
lines changed

.github/workflows/release-beta.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: release
33
on:
44
push:
55
tags:
6-
- "*-beta.*"
6+
- '*-beta.*'
77

88
jobs:
99
publish_beta:
@@ -18,9 +18,9 @@ jobs:
1818

1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: "18.x"
22-
registry-url: "https://registry.npmjs.org"
23-
cache: "pnpm"
21+
node-version: '18.x'
22+
registry-url: 'https://registry.npmjs.org'
23+
cache: 'pnpm'
2424

2525
- name: Install dependencies
2626
run: pnpm i
@@ -30,6 +30,6 @@ jobs:
3030

3131
- name: Publish
3232
run: |
33-
pnpm release --tag beta
33+
pnpm publish:ci --dist-tag beta
3434
env:
3535
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: release
33
on:
44
push:
55
tags-ignore:
6-
- "*-beta.*"
6+
- '*-beta.*'
77

88
jobs:
99
publish:
@@ -18,9 +18,9 @@ jobs:
1818

1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: "18.x"
22-
registry-url: "https://registry.npmjs.org"
23-
cache: "pnpm"
21+
node-version: '18.x'
22+
registry-url: 'https://registry.npmjs.org'
23+
cache: 'pnpm'
2424

2525
- name: Install dependencies
2626
run: pnpm i
@@ -30,6 +30,6 @@ jobs:
3030

3131
- name: Publish
3232
run: |
33-
pnpm release
33+
pnpm publish:ci
3434
env:
3535
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

lerna.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
3+
"version": "0.0.6",
4+
"changelogPreset": "angular",
5+
"npmClient": "pnpm",
6+
"packages": ["packages/*"]
7+
}

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "adex-root",
3-
"version": "0.0.0",
43
"type": "module",
54
"private": true,
65
"description": "",
@@ -10,13 +9,16 @@
109
"scripts": {
1110
"play": "pnpm --filter='playground' -r dev",
1211
"test": "echo 'true'",
13-
"release": "pnpm -r publish --no-git-checks --filter='!playground'"
12+
"publish:ci": "lerna publish from-git --registry 'https://registry.npmjs.org' --yes",
13+
"next": "lerna version --sync-workspace-lock"
1414
},
1515
"license": "MIT",
1616
"prettier": "@barelyhuman/prettier-config",
1717
"devDependencies": {
18-
"@changesets/cli": "^2.27.7",
1918
"@barelyhuman/prettier-config": "^1.1.0",
19+
"@lerna-lite/cli": "^3.7.1",
20+
"@lerna-lite/publish": "^3.7.1",
21+
"@lerna-lite/version": "^3.7.1",
2022
"prettier": "^3.3.2"
2123
}
2224
}

0 commit comments

Comments
 (0)