homeflowjs 0.7.20 → 0.7.21

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/Jenkinsfile +36 -1
  2. package/package.json +1 -1
package/Jenkinsfile CHANGED
@@ -7,6 +7,10 @@ pipeline {
7
7
  TERM = 'xterm'
8
8
  }
9
9
 
10
+ options {
11
+ timeout(time: 6, unit: 'HOURS')
12
+ }
13
+
10
14
  agent {
11
15
  docker {
12
16
  alwaysPull true
@@ -21,7 +25,7 @@ pipeline {
21
25
  stage('Setup') {
22
26
  steps {
23
27
  sh 'yarn install'
24
- sh 'npm install --global $(./bin/peer-dependencies -v)'
28
+ sh 'npm install --global $(./bin/peer-dependencies -v) npm-cli-login'
25
29
  sh 'for f in $(./bin/peer-dependencies); do (cd "/usr/lib/node_modules/${f}/" && yarn link); done'
26
30
  }
27
31
  }
@@ -31,6 +35,37 @@ pipeline {
31
35
  sh 'yarn test'
32
36
  }
33
37
  }
38
+
39
+ stage('Publish Verification') {
40
+ when {
41
+ branch 'jenkin-publish'
42
+ triggeredBy 'BitBucketPushCause'
43
+ beforeInput true
44
+ }
45
+
46
+ steps {
47
+ script {
48
+ def publishResponse = input message: 'Publish?', parameters: [
49
+ booleanParam(name: 'PUBLISH_CONFIRMATION', defaultValue: false, description: 'Publish new version?'),
50
+ string(name: 'PUBLISH_VERSION', defaultValue: '', description: 'New version (e.g. 1.0.0)')
51
+ ]
52
+ env.PUBLISH_CONFIRMATION = publishResponse.PUBLISH_CONFIRMATION
53
+ env.PUBLISH_VERSION = publishResponse.PUBLISH_VERSION
54
+ }
55
+ }
56
+ }
57
+
58
+ stage('Publish') {
59
+ when {
60
+ environment name: 'PUBLISH_CONFIRMATION', value: 'true'
61
+ }
62
+
63
+ steps {
64
+ sh 'set -ax; . /var/secrets/production/npm.env ; npm-cli-login'
65
+ sh 'yarn publish --new-version ${PUBLISH_VERSION}'
66
+ sh 'git push git@bitbucket.org:homeflow_developers/homeflowjs master'
67
+ }
68
+ }
34
69
  }
35
70
 
36
71
  post {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "0.7.20",
3
+ "version": "0.7.21",
4
4
  "description": "JavaScript toolkit for Homeflow themes",
5
5
  "main": "index.js",
6
6
  "scripts": {