Skip to content

Commit f76a615

Browse files
committed
fix(angular): Angular-Slickgrid should use latest bumped version
1 parent 5c37862 commit f76a615

File tree

9 files changed

+31
-24
lines changed

9 files changed

+31
-24
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ jobs:
106106
pnpm whoami
107107
pnpm exec ${{ env.LERNA_VERSION_QUERY }}
108108
109+
# because ng-packagr copies the package.json to dist,
110+
# we need to re-run the build to get latest version in its dist/package.json
111+
- name: run another Angular-Slickgrid build
112+
run: pnpm run angular:build:framework
113+
114+
# then we need to replace all `workspace:` protocol with valid workspace package versions
109115
- name: replace Angular-Slickgrid "workspace:"
110116
run: pnpm run angular:replace-workspace
111117

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ jobs:
154154
pnpm whoami
155155
pnpm exec lerna version ${{ inputs.bump }} --conventional-commits --conventional-prerelease --preid ${{ inputs.tag }} --force-publish --yes
156156
157+
# because ng-packagr copies the package.json to dist,
158+
# we need to re-run the build to get latest version in its dist/package.json
159+
- name: run another Angular-Slickgrid build
160+
run: pnpm run angular:build:framework
161+
162+
# then we need to replace all `workspace:` protocol with valid workspace package versions
157163
- name: replace Angular-Slickgrid "workspace:"
158164
run: pnpm run angular:replace-workspace
159165

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ jobs:
105105
pnpm whoami
106106
pnpm exec lerna version prerelease --conventional-commits --conventional-prerelease --preid beta --force-publish --yes
107107
108+
# because ng-packagr copies the package.json to dist,
109+
# we need to re-run the build to get latest version in its dist/package.json
110+
- name: run another Angular-Slickgrid build
111+
run: pnpm run angular:build:framework
112+
113+
# then we need to replace all `workspace:` protocol with valid workspace package versions
108114
- name: replace Angular-Slickgrid "workspace:"
109115
run: pnpm run angular:replace-workspace
110116

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ jobs:
6969
- name: Build Everything
7070
run: pnpm build
7171

72+
# because ng-packagr copies the package.json to dist,
73+
# we need to re-run the build to get latest version in its dist/package.json
74+
- name: run another Angular-Slickgrid build
75+
run: pnpm run angular:build:framework
76+
77+
# then we need to replace all `workspace:` protocol with valid workspace package versions
7278
- name: replace Angular-Slickgrid "workspace:"
7379
run: pnpm run angular:replace-workspace
7480

CHANGELOG.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@
44
All notable changes to this project will be documented in this file.
55
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
66

7-
## [9.0.4](https://github.com/ghiscoding/slickgrid-universal/compare/v9.0.3...v9.0.4) (2025-05-16)
7+
## [9.0.3](https://github.com/ghiscoding/slickgrid-universal/compare/v9.0.3...v9.0.3) (2025-05-16)
88

99
### Bug Fixes
1010

1111
* **angular:** Angular-Slickgrid npm publish should replace workspace: ([b216c26](https://github.com/ghiscoding/slickgrid-universal/commit/b216c2690d9d8f7818a477d238c5b8250ef7692a)) - by @ghiscoding
12-
13-
## [9.0.3](https://github.com/ghiscoding/slickgrid-universal/compare/v9.0.2...v9.0.3) (2025-05-16)
14-
15-
### Bug Fixes
16-
1712
* **angular:** Angular-Slickgrid npm publish should replace workspace: ([66dc808](https://github.com/ghiscoding/slickgrid-universal/commit/66dc80807ff90352c9f60aad2218bc5b16dd228a)) - by @ghiscoding
1813
* **angular:** replace workspace version before release ([0108ede](https://github.com/ghiscoding/slickgrid-universal/commit/0108ede43733f1ff61b3cf058291edd1958ed201)) - by @ghiscoding
1914

frameworks/angular-slickgrid/CHANGELOG.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@
44
All notable changes to this project will be documented in this file.
55
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
66

7-
## [9.0.4](https://github.com/ghiscoding/slickgrid-universal/compare/v9.0.3...v9.0.4) (2025-05-16)
7+
## [9.0.3](https://github.com/ghiscoding/slickgrid-universal/compare/v9.0.3...v9.0.3) (2025-05-16)
88

99
### Bug Fixes
1010

1111
* **angular:** Angular-Slickgrid npm publish should replace workspace: ([b216c26](https://github.com/ghiscoding/slickgrid-universal/commit/b216c2690d9d8f7818a477d238c5b8250ef7692a)) - by @ghiscoding
12-
13-
## [9.0.3](https://github.com/ghiscoding/slickgrid-universal/compare/v9.0.2...v9.0.3) (2025-05-16)
14-
15-
### Bug Fixes
16-
1712
* **angular:** Angular-Slickgrid npm publish should replace workspace: ([66dc808](https://github.com/ghiscoding/slickgrid-universal/commit/66dc80807ff90352c9f60aad2218bc5b16dd228a)) - by @ghiscoding
1813
* **angular:** replace workspace version before release ([0108ede](https://github.com/ghiscoding/slickgrid-universal/commit/0108ede43733f1ff61b3cf058291edd1958ed201)) - by @ghiscoding
1914

frameworks/angular-slickgrid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-slickgrid",
3-
"version": "9.0.4",
3+
"version": "9.0.3",
44
"description": "Slickgrid components made available in Angular",
55
"keywords": [
66
"angular",

frameworks/angular-slickgrid/scripts/replace-workspace.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const projectRootPath = pJoin(__dirname, '../');
2323
const depPkgName = depName.replace('@slickgrid-universal', '');
2424
const depPkg = readJSONSync(pJoin(projectRootPath, '../../packages/', depPkgName, 'package.json'));
2525
distPkg.dependencies[depName] = depPkg.version;
26-
console.log(`replace "${depName}" dependency to "${depPkg.version}"`);
26+
console.log(`update dependency { "${depName}": "${depPkg.version}" }`);
2727
}
2828
}
2929
writeJsonSync(pResolve(projectRootPath, 'dist', 'package.json'), distPkg, { spaces: 2 });

lerna.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
22
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
3-
"version": "9.0.4",
3+
"version": "9.0.3",
44
"npmClient": "pnpm",
55
"loglevel": "info",
66
"command": {
77
"publish": {
88
"cleanupTempFiles": true,
9-
"removePackageFields": [
10-
"devDependencies",
11-
"scripts"
12-
]
9+
"removePackageFields": ["devDependencies", "scripts"]
1310
},
1411
"version": {
1512
"conventionalCommits": true,
@@ -21,9 +18,5 @@
2118
}
2219
},
2320
"changelogPreset": "conventionalcommits",
24-
"packages": [
25-
"demos/*",
26-
"frameworks/*",
27-
"packages/*"
28-
]
21+
"packages": ["demos/*", "frameworks/*", "packages/*"]
2922
}

0 commit comments

Comments
 (0)