Skip to content

Commit

Permalink
Upgrade Jenkinsfile storybook to yarn 3
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Nov 24, 2022
1 parent 77bfb6a commit d20de8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Expand Up @@ -280,7 +280,7 @@ pipeline {
sh '''git clone --branch develop https://github.com/eea/volto-kitkat-frontend.git'''

withCredentials([string(credentialsId: 'volto-kitkat-frontend-chromatica', variable: 'CHROMATICA_TOKEN')]) {
def RETURN_STATUS = sh(script: '''cd volto-kitkat-frontend; npm install -g mrs-developer chromatic; yarn cache clean; yarn develop; cd src/addons/$GIT_NAME; git fetch origin pull/${CHANGE_ID}/head:PR-${CHANGE_ID}; git checkout PR-${CHANGE_ID}; cd ../../..; yarn policies set-version 1.18.0; yarn install; yarn build-storybook; npx chromatic --no-interactive --force-rebuild --project-token=$CHROMATICA_TOKEN | tee chromatic.log; cd ..''', returnStatus: true)
def RETURN_STATUS = sh(script: '''cd volto-kitkat-frontend; npm install -g mrs-developer chromatic; yarn cache clean; make develop; cd src/addons/$GIT_NAME; git fetch origin pull/${CHANGE_ID}/head:PR-${CHANGE_ID}; git checkout PR-${CHANGE_ID}; cd ../../..; yarn install; yarn build-storybook; npx chromatic --no-interactive --force-rebuild --project-token=$CHROMATICA_TOKEN | tee chromatic.log; cd ..''', returnStatus: true)
if ( RETURN_STATUS == 0 ) {
def STORY_URL = sh(script: '''grep "View your Storybook" volto-kitkat-frontend/chromatic.log | sed "s/.*https/https/" ''', returnStdout: true).trim()
pullRequest.comment("### :heavy_check_mark: Storybook:\n${STORY_URL}\n\n:rocket: @${GITHUB_COMMENT_AUTHOR}")
Expand Down
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -21,14 +21,14 @@
],
"dependencies": {
"@eeacms/volto-corsproxy": "*",
"remixicon": "2.5.0",
"react-countup": "^6.3.0",
"react-slick": "^0.28.1",
"slick-carousel": "^1.8.1",
"react-countup": "^6.3.0"
"remixicon": "2.5.0",
"slick-carousel": "^1.8.1"
},
"devDependencies": {
"@plone/scripts": "*",
"@cypress/code-coverage": "^3.10.0",
"@plone/scripts": "*",
"babel-plugin-transform-class-properties": "^6.24.1",
"md5": "^2.3.0"
},
Expand Down

0 comments on commit d20de8d

Please sign in to comment.