@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.
Files changed (2) hide show
  1. package/.gitlab-ci.yml +14 -4
  2. 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: [ publish ]
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$GLAB_PACKAGE_URL"
129
+ url: "https://gitlab.com/$GLAB_PACKAGE_URL"
120
130
  link_type: package
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@benshawmean/envedit",
3
3
  "type": "module",
4
- "version": "1.4.0",
4
+ "version": "1.4.1-0",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {
7
7
  "envedit": "cli/index.ts"