Skip to content

Commit 7918211

Browse files
bump
1 parent 2634896 commit 7918211

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
release-it --patch --ci
3+
head package.json
4+
cat service.yaml
5+
.deploy/pipelines/scripts/ci/name-version.sh > ./service.yaml
6+
git commit -m "bump" && git push
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
release-it --patch --ci
3+
git tag -f latest
4+
git push --tag --force

.release-it.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"npm": {
3+
"publish": false
4+
},
5+
"git": {
6+
"commitMessage": "chore: release v${version}"
7+
},
8+
"github": {
9+
"release": true
10+
},
11+
"hooks": {
12+
"before:init": ["echo init"],
13+
"after:my-plugin:bump": "./bin/my-script.sh",
14+
"after:bump": "echo 'afterbump';.deploy/pipelines/scripts/ci/name-version.sh > ./service.yaml",
15+
"before:git:push": "echo 'before:git:push';git tag -f latest",
16+
"after:git:release": "echo After git push, before github release",
17+
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
18+
}
19+
}

0 commit comments

Comments
 (0)