@benshawmean/envedit 1.1.4 → 1.2.1

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 +11 -3
  2. package/package.json +1 -1
package/.gitlab-ci.yml CHANGED
@@ -6,6 +6,8 @@ workflow:
6
6
  rules:
7
7
  - if: $CI_COMMIT_BRANCH
8
8
  - if: $CI_COMMIT_TAG
9
+ - if: $CI_COMMIT_DESCRIPTION =~ /(no|skip)\s+(ci|pipeline)/mi
10
+ when: never
9
11
 
10
12
  default:
11
13
  image: oven/bun:debian
@@ -17,7 +19,7 @@ default:
17
19
  - bun install --quiet
18
20
 
19
21
  variables:
20
- GLAB_NPM_REG: //${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/
22
+ GLAB_NPM_REG: ${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/
21
23
  VERSION_REGEX: /^v\d+\.\d+\.\d+(-\S*)?$/
22
24
  NO_CI_REGEX: /(no|skip)\s+(ci|pipeline)/mi
23
25
 
@@ -54,6 +56,7 @@ deploy:
54
56
  aud: "npm:registry.npmjs.org"
55
57
  rules:
56
58
  - if: $CI_COMMIT_REF_PROTECTED && $CI_COMMIT_TAG && $CI_COMMIT_TAG =~ $VERSION_REGEX
59
+ when: always
57
60
  - if: $CI_COMMIT_DESCRIPTION =~ $NO_CI_REGEX
58
61
  when: never
59
62
  script:
@@ -69,8 +72,13 @@ deploy:
69
72
  fi
70
73
 
71
74
  - | # Publish to npm and GitLab registries
72
- echo "${GLAB_NPM_REG}:_authToken=${CI_JOB_TOKEN}" > .npmrc
73
- just publish
75
+ echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}" > .npmrc
76
+ bun pm pack --filename package.tgz
77
+ bunx npm publish -q package.tgz
78
+
79
+ bun publish --silent --registry https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/ package.tgz
80
+ rm package.tgz .npmrc
81
+
74
82
  allow_failure:
75
83
  exit_codes:
76
84
  - 9001
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@benshawmean/envedit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "1.1.4",
5
+ "version": "1.2.1",
6
6
  "license": "GPL-3.0-only",
7
7
  "bin": {
8
8
  "envedit": "index.ts"