@benshawmean/envedit 1.4.1-1 → 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.
Files changed (2) hide show
  1. package/.gitlab-ci.yml +3 -2
  2. package/package.json +1 -1
package/.gitlab-ci.yml CHANGED
@@ -89,8 +89,9 @@ publish:
89
89
  - bun publish ${PUBLISH_FLAGS[*]} package.tgz
90
90
 
91
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")
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@benshawmean/envedit",
3
3
  "type": "module",
4
- "version": "1.4.1-1",
4
+ "version": "1.4.1-2",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {
7
7
  "envedit": "cli/index.ts"