@benshawmean/envedit 1.3.2-0 → 1.3.2-2
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/.gitlab-ci.yml +9 -2
- package/package.json +2 -3
package/.gitlab-ci.yml
CHANGED
|
@@ -65,6 +65,8 @@ publish:
|
|
|
65
65
|
export PACKAGE_NAME=$(jq -r '.name' package.json)
|
|
66
66
|
export CURR_VER=$(jq -r '.version' package.json)
|
|
67
67
|
export LIVE_VER=$(bun info $PACKAGE_NAME version)
|
|
68
|
+
export IS_PRE_RELEASE=$(echo $CURR_VER | grep -E '[-+]')
|
|
69
|
+
export PUBLISH_FLAGS=( "--silent" )
|
|
68
70
|
|
|
69
71
|
- | # Check if the current version is already published
|
|
70
72
|
if [ "$LIVE_VER" == "$CURR_VER" ]; then
|
|
@@ -73,9 +75,14 @@ publish:
|
|
|
73
75
|
fi
|
|
74
76
|
|
|
75
77
|
- bun pm pack --filename package.tgz
|
|
76
|
-
-
|
|
78
|
+
- |
|
|
79
|
+
if [ $IS_PRE_RELEASE ]; then
|
|
80
|
+
echo "Pre-release version detected. Publishing with 'next' tag."
|
|
81
|
+
PUBLISH_FLAGS+=( "--tag=next" )
|
|
82
|
+
fi
|
|
83
|
+
- bunx npm publish ${PUBLISH_FLAGS[*]} package.tgz
|
|
77
84
|
- sh ci/npm.sh
|
|
78
|
-
- bun publish
|
|
85
|
+
- bun publish ${PUBLISH_FLAGS[*]} package.tgz
|
|
79
86
|
- rm package.tgz .npmrc
|
|
80
87
|
|
|
81
88
|
allow_failure:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@benshawmean/envedit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.2-
|
|
4
|
+
"version": "1.3.2-2",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"bin": {
|
|
7
7
|
"envedit": "cli/index.ts"
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public",
|
|
14
|
-
"provenance": true
|
|
15
|
-
"tag": "latest"
|
|
14
|
+
"provenance": true
|
|
16
15
|
},
|
|
17
16
|
"devDependencies": {
|
|
18
17
|
"@types/bun": "^1.3.14",
|