@benshawmean/envedit 1.4.1-2 → 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,12 @@ 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
94
  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/^\///')
95
+ export GLAB_PACKAGE_URL=$(echo $GLAB_DATA | jq ._links.web_path)
94
96
  export VERSION_NUMBER=$(echo $GLAB_DATA | jq .version)
95
97
 
96
98
  echo "GLAB_PACKAGE_URL=$GLAB_PACKAGE_URL" >> variables.env
@@ -127,5 +129,5 @@ release:
127
129
  url: "https://www.npmjs.com/package/@$CI_PROJECT_PATH/v/$VERSION_NUMBER"
128
130
  link_type: package
129
131
  - name: "GitLab Package Registry Release"
130
- url: "https://gitlab.com/$GLAB_PACKAGE_URL"
132
+ url: "https://gitlab.com$GLAB_PACKAGE_URL"
131
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-2",
4
+ "version": "1.4.1-3",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {
7
7
  "envedit": "cli/index.ts"