@benshawmean/envedit 1.4.1-0 → 1.4.1-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 +4 -3
- package/package.json +1 -1
package/.gitlab-ci.yml
CHANGED
|
@@ -12,7 +12,7 @@ workflow:
|
|
|
12
12
|
image: oven/bun:debian
|
|
13
13
|
before_script:
|
|
14
14
|
- apt-get update -y > /dev/null
|
|
15
|
-
- apt-get install -qy git curl jq build-essential just > /dev/null
|
|
15
|
+
- apt-get install -qy git curl jq build-essential just glab > /dev/null
|
|
16
16
|
- curl -sSf https://sh.rustup.rs | bash -s -- -y -q > /dev/null
|
|
17
17
|
- . "$HOME/.cargo/env"
|
|
18
18
|
- bun install --quiet
|
|
@@ -89,8 +89,9 @@ publish:
|
|
|
89
89
|
- bun publish ${PUBLISH_FLAGS[*]} package.tgz
|
|
90
90
|
|
|
91
91
|
- |
|
|
92
|
-
export
|
|
93
|
-
export
|
|
92
|
+
export GLAB_DATA=$(glab api "projects/:id/packages?order_by=created_at&sort=asc" | jq .[-1])
|
|
93
|
+
export GLAB_PACKAGE_URL=$(echo $GLAB_DATA | jq ._links.web_path | sed 's/^\///')
|
|
94
|
+
export VERSION_NUMBER=$(echo $GLAB_DATA | jq .version)
|
|
94
95
|
|
|
95
96
|
echo "GLAB_PACKAGE_URL=$GLAB_PACKAGE_URL" >> variables.env
|
|
96
97
|
echo "VERSION_NUMBER=$VERSION_NUMBER" >> variables.env
|