@benshawmean/envedit 1.4.1-1 → 1.4.1-3
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 +6 -3
- package/cli/cmd/environmentCmd/add.ts +2 -0
- package/cli/index.ts +3 -0
- package/package.json +1 -1
package/.gitlab-ci.yml
CHANGED
|
@@ -87,10 +87,13 @@ publish:
|
|
|
87
87
|
- bunx npm publish ${PUBLISH_FLAGS[*]} package.tgz
|
|
88
88
|
- sh ci/npm.sh
|
|
89
89
|
- bun publish ${PUBLISH_FLAGS[*]} package.tgz
|
|
90
|
+
- sleep 15 # wait for the package to be available in the registry
|
|
90
91
|
|
|
92
|
+
after_script:
|
|
91
93
|
- |
|
|
92
|
-
export
|
|
93
|
-
export
|
|
94
|
+
export GLAB_DATA=$(glab api "projects/:id/packages?order_by=created_at&sort=asc" | jq .[-1])
|
|
95
|
+
export GLAB_PACKAGE_URL=$(echo $GLAB_DATA | jq ._links.web_path)
|
|
96
|
+
export VERSION_NUMBER=$(echo $GLAB_DATA | jq .version)
|
|
94
97
|
|
|
95
98
|
echo "GLAB_PACKAGE_URL=$GLAB_PACKAGE_URL" >> variables.env
|
|
96
99
|
echo "VERSION_NUMBER=$VERSION_NUMBER" >> variables.env
|
|
@@ -126,5 +129,5 @@ release:
|
|
|
126
129
|
url: "https://www.npmjs.com/package/@$CI_PROJECT_PATH/v/$VERSION_NUMBER"
|
|
127
130
|
link_type: package
|
|
128
131
|
- name: "GitLab Package Registry Release"
|
|
129
|
-
url: "https://gitlab.com
|
|
132
|
+
url: "https://gitlab.com$GLAB_PACKAGE_URL"
|
|
130
133
|
link_type: package
|
package/cli/index.ts
CHANGED