@sudosf/npm-publish-sandbox 5.0.0 → 5.1.0

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 +4 -0
  2. package/package.json +1 -1
package/.gitlab-ci.yml CHANGED
@@ -83,6 +83,10 @@ npm-publish:
83
83
  echo "[npm] Adding mutable env dist-tag: $ENV"
84
84
  npm dist-tag add "$BASE_NAME@$VERSION" "$ENV"
85
85
 
86
+ # Major version env tag e.g. dev-3, qa-3
87
+ echo "[npm] Adding major-version dist-tag: $ENV-$MAJOR_VERSION"
88
+ npm dist-tag add "$BASE_NAME@$VERSION" "$ENV-$MAJOR_VERSION"
89
+
86
90
  # On stable, also point 'latest' to this version
87
91
  if [[ "$ENV" == "stable" ]]; then
88
92
  echo "[npm] Stable release — updating 'latest' tag to $VERSION"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudosf/npm-publish-sandbox",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "Sandbox package for testing npm publish to Artifactory",
5
5
  "main": "index.js",
6
6
  "license": "MIT",