@sudosf/npm-publish-sandbox 4.0.0 → 4.0.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 +5 -5
  2. package/package.json +1 -1
package/.gitlab-ci.yml CHANGED
@@ -9,7 +9,7 @@ npm-publish:
9
9
  when: never
10
10
  - if: $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "stable" || $CI_COMMIT_BRANCH == "qa" || $CI_COMMIT_BRANCH == "staging"
11
11
  when: always
12
- - if: $CI_COMMIT_BRANCH =~ /^hotfix\/(master|qa|staging|stable)-/
12
+ - if: $CI_COMMIT_BRANCH =~ /^hotfix\/(master|qa|staging|stable)/
13
13
  when: always
14
14
  - when: never
15
15
  script:
@@ -26,13 +26,13 @@ npm-publish:
26
26
  echo "========================================"
27
27
 
28
28
  # Determine environment from branch
29
- if [[ $CI_COMMIT_BRANCH == "stable" || $CI_COMMIT_BRANCH =~ ^hotfix/stable- ]]; then
29
+ if [[ $CI_COMMIT_BRANCH == "stable" || $CI_COMMIT_BRANCH =~ ^hotfix/stable ]]; then
30
30
  ENV="stable"
31
- elif [[ $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH =~ ^hotfix/master- ]]; then
31
+ elif [[ $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH =~ ^hotfix/master ]]; then
32
32
  ENV="dev"
33
- elif [[ $CI_COMMIT_BRANCH == "qa" || $CI_COMMIT_BRANCH =~ ^hotfix/qa- ]]; then
33
+ elif [[ $CI_COMMIT_BRANCH == "qa" || $CI_COMMIT_BRANCH =~ ^hotfix/qa ]]; then
34
34
  ENV="qa"
35
- elif [[ $CI_COMMIT_BRANCH == "staging" || $CI_COMMIT_BRANCH =~ ^hotfix/staging- ]]; then
35
+ elif [[ $CI_COMMIT_BRANCH == "staging" || $CI_COMMIT_BRANCH =~ ^hotfix/staging ]]; then
36
36
  ENV="staging"
37
37
  fi
38
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudosf/npm-publish-sandbox",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Sandbox package for testing npm publish to Artifactory",
5
5
  "main": "index.js",
6
6
  "license": "MIT",