We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3af6fa6 commit 7f5e8b2Copy full SHA for 7f5e8b2
2 files changed
release.config.cjs
@@ -26,14 +26,7 @@ const execPlugin = isDev
26
: [
27
'@semantic-release/exec',
28
{
29
- successCmd: `
30
- VERSION=\${nextRelease.version}
31
- IFS='.' read -r major minor patch <<<"$VERSION"
32
- NEXT_MINOR=$((minor + 1))
33
- DEV_TAG="v\${major}.\${NEXT_MINOR}.0-dev.0"
34
- git tag "$DEV_TAG"
35
- git push origin "$DEV_TAG"
36
- `,
+ successCmd: './scripts/create-dev-tag.sh ${nextRelease.version}',
37
},
38
];
39
scripts/create-dev-tag.sh
@@ -0,0 +1,8 @@
1
+#!/usr/bin/env bash
2
+VERSION="$1"
3
+IFS="." read -r major minor patch <<< "$VERSION"
4
+NEXT_MINOR=$((minor + 1))
5
+DEV_TAG="v${major}.${NEXT_MINOR}.0-dev.0"
6
+echo "[semantic-release] tagging: $DEV_TAG"
7
+git tag "$DEV_TAG"
8
+git push origin "$DEV_TAG"
0 commit comments