@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 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 GLAB_PACKAGE_URL=$(glab packages list --jq ".[-1]._links.web_path" | sed 's/^\///')
93
- export VERSION_NUMBER=$(glab packages list --jq ".[-1].version")
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/$GLAB_PACKAGE_URL"
132
+ url: "https://gitlab.com$GLAB_PACKAGE_URL"
130
133
  link_type: package
@@ -78,6 +78,8 @@ export default {
78
78
  for (const [key, value] of Object.entries(envSpecificFile.vars)) {
79
79
  envFile.vars.set(key, value);
80
80
  }
81
+
82
+ envFile.save();
81
83
  } else {
82
84
  for (const [_, variable] of config.vars) {
83
85
  const request = {
package/cli/index.ts CHANGED
@@ -21,5 +21,8 @@ await yargs(hideBin(process.argv))
21
21
  .command(await import("./cmd/index.ts").then((mod) => mod.default))
22
22
  .showHelpOnFail(false)
23
23
  .demandCommand()
24
+ .version()
25
+ .alias("h", "help")
26
+ .alias("v", "version")
24
27
  .strict()
25
28
  .parseAsync();
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-3",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {
7
7
  "envedit": "cli/index.ts"