Skip to content

Commit fe05370

Browse files
committed
feat: integrate release-please
1 parent 3731642 commit fe05370

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

.github/workflows/release-please.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
name: release-please
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: google-github-actions/release-please-action@v3
11+
with:
12+
release-type: node
13+
package-name: --libraryname--

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ A template to create a react component / library with Typescript.
1212
- Css Modules
1313
- Jest with code coverage report
1414
- `Typedoc` for API documentation
15-
- `standard-version` ready
1615
- `commitlint` for conventional-commits
1716
- `Prettier` and `ESLint` integration with git hooks
1817
- Optional `example app` generation for testing
1918
- `Github Pages` integration
19+
- Release-Please workflow
2020

2121
## Install
2222

tools/init.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,9 @@ function finalize() {
142142
delete pkg.scripts.postinstall;
143143

144144
// remove the dependencies that are required for the bootstrapping.
145-
['colors', 'prompt', 'replace-in-file', 'shelljs', 'ts-node'].forEach(
146-
(dep) => {
147-
delete pkg.devDependencies[dep];
148-
}
149-
);
145+
['colors', 'prompt', 'replace-in-file', 'ts-node'].forEach((dep) => {
146+
delete pkg.devDependencies[dep];
147+
});
150148

151149
writeFileSync(jsonPackage, JSON.stringify(pkg, null, 2));
152150
console.log(green('Postinstall script has been removed'));

0 commit comments

Comments
 (0)