@codebehind/agent-workflow 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/publish-new-version.sh +21 -0
- package/package.json +6 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
BUMP="${1:-patch}"
|
|
5
|
+
|
|
6
|
+
if [[ "$BUMP" != "patch" && "$BUMP" != "minor" && "$BUMP" != "major" ]]; then
|
|
7
|
+
echo "Usage: $0 [patch|minor|major]" >&2
|
|
8
|
+
echo " Default: patch" >&2
|
|
9
|
+
exit 1
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
echo "Bumping ${BUMP} version..."
|
|
13
|
+
npm version "$BUMP"
|
|
14
|
+
|
|
15
|
+
echo "Pushing commits to main..."
|
|
16
|
+
git push origin main
|
|
17
|
+
|
|
18
|
+
echo "Pushing tag..."
|
|
19
|
+
git push origin --tags
|
|
20
|
+
|
|
21
|
+
echo "Done. GitLab pipeline will publish to npm."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codebehind/agent-workflow",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Scaffold the agent-workflow spec-driven delivery framework into any repo",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"scaffold",
|
|
22
22
|
"spec-driven"
|
|
23
23
|
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"release": "bash bin/publish-new-version.sh",
|
|
26
|
+
"release:minor": "bash bin/publish-new-version.sh minor",
|
|
27
|
+
"release:major": "bash bin/publish-new-version.sh major"
|
|
28
|
+
},
|
|
24
29
|
"repository": {
|
|
25
30
|
"type": "git",
|
|
26
31
|
"url": "git+https://gitlab.com/codebehind/agent-workflow.git"
|