@benshawmean/envedit 1.4.0 → 1.4.1-0
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 +14 -4
- package/package.json +1 -1
package/.gitlab-ci.yml
CHANGED
|
@@ -87,6 +87,16 @@ 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
|
+
|
|
91
|
+
- |
|
|
92
|
+
export GLAB_PACKAGE_URL=$(glab packages list --jq ".[-1]._links.web_path" | sed 's/^\///')
|
|
93
|
+
export VERSION_NUMBER=$(glab packages list --jq ".[-1].version")
|
|
94
|
+
|
|
95
|
+
echo "GLAB_PACKAGE_URL=$GLAB_PACKAGE_URL" >> variables.env
|
|
96
|
+
echo "VERSION_NUMBER=$VERSION_NUMBER" >> variables.env
|
|
97
|
+
artifacts:
|
|
98
|
+
reports:
|
|
99
|
+
dotenv: variables.env
|
|
90
100
|
allow_failure:
|
|
91
101
|
exit_codes:
|
|
92
102
|
- 9001
|
|
@@ -99,12 +109,12 @@ release:
|
|
|
99
109
|
rules:
|
|
100
110
|
- if: $CI_COMMIT_REF_PROTECTED && $CI_COMMIT_TAG && $CI_COMMIT_TAG =~ $VERSION_REGEX
|
|
101
111
|
|
|
102
|
-
needs:
|
|
112
|
+
needs:
|
|
113
|
+
- job: publish
|
|
114
|
+
artifacts: true
|
|
103
115
|
|
|
104
116
|
script:
|
|
105
117
|
- glab changelog generate > CHANGELOG.md
|
|
106
|
-
- export GLAB_PACKAGE_URL=$(glab packages list --jq ".[-1]._links.web_path" | sed 's/^\///')
|
|
107
|
-
- export VERSION_NUMBER=$(glab packages list --jq ".[-1].version")
|
|
108
118
|
|
|
109
119
|
release:
|
|
110
120
|
name: "Release $CI_COMMIT_TAG"
|
|
@@ -116,5 +126,5 @@ release:
|
|
|
116
126
|
url: "https://www.npmjs.com/package/@$CI_PROJECT_PATH/v/$VERSION_NUMBER"
|
|
117
127
|
link_type: package
|
|
118
128
|
- name: "GitLab Package Registry Release"
|
|
119
|
-
url: "https://gitlab.com
|
|
129
|
+
url: "https://gitlab.com/$GLAB_PACKAGE_URL"
|
|
120
130
|
link_type: package
|