Skip to content

Commit e89ac54

Browse files
authored
Fix release process in light of changing to independent versioning (lensapp#7357)
* Remove workflow - Not applicable anymore since each package has its own version Signed-off-by: Sebastian Malton <[email protected]> * Fix daily-alpha to be based on core version Signed-off-by: Sebastian Malton <[email protected]> * lerna.json no longer will be updated during releases Signed-off-by: Sebastian Malton <[email protected]> * Use the prerelease parts of @k8slens/core to determine dist tag Signed-off-by: Sebastian Malton <[email protected]> --------- Signed-off-by: Sebastian Malton <[email protected]>
1 parent 3649070 commit e89ac54

File tree

4 files changed

+3
-48
lines changed

4 files changed

+3
-48
lines changed

.github/workflows/bump-master-version.yaml

-45
This file was deleted.

.github/workflows/daily-alpha.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Bump version
3030
id: version
3131
run: |
32-
node packages/bump-version-for-cron/dist/index.js --path lerna.json
32+
node packages/bump-version-for-cron/dist/index.js --path packages/core/package.json
3333
- name: Check if branch already exists
3434
id: check-branch
3535
run: git ls-remote --exit-code --tags origin v${{ steps.version.outputs.VERSION }}

.github/workflows/publish-release-npm.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Publish NPM packages
3939
run: |
4040
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
41-
VERSION=$(cat lerna.json | jq '.version' --raw-output)
41+
VERSION=$(cat packages/core/package.json | jq '.version' --raw-output)
4242
echo ${VERSION}
4343
DIST_TAG=$(node packages/semver/dist/index.js --prerelease 0 ${VERSION})
4444
npx lerna \

packages/release-tool/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async function createReleaseBranchAndCommit(prBase: string, version: SemVer, prB
158158
const prBranch = `release/v${version.format()}`;
159159

160160
await pipeExecFile("git", ["checkout", "-b", prBranch]);
161-
await pipeExecFile("git", ["add", "lerna.json", "packages/*/package.json"]);
161+
await pipeExecFile("git", ["add", "packages/*/package.json"]);
162162
await pipeExecFile("git", ["commit", "-sm", `Release ${version.format()}`]);
163163
await pipeExecFile("git", ["push", "--set-upstream", "origin", prBranch]);
164164

0 commit comments

Comments
 (0)