/ Jenkinsfile
Jenkinsfile
 1  def gh_user = 'status-im-auto'
 2  def gh_email = 'auto@status.im'
 3  
 4  node('linux') {
 5    environment {
 6      GH_USER = gh_user
 7    }
 8  
 9    stage('Git Prep') {
10      checkout scm
11      sh "git config user.name ${gh_user}"
12      sh "git config user.email ${gh_email}"
13    }
14  
15    stage('Install Deps') {
16      sh 'npm install'
17    }
18  
19    stage('Build') {
20      sh 'npm run lint'
21      sh 'npm run prod-build'
22    }
23  
24    stage('Publish') {
25      withCredentials([string(
26        credentialsId: 'jenkins-github-token',
27        variable: 'GH_TOKEN',
28      )]) {
29        sh 'npm run gh-publish'
30      }
31    }
32  }