Skip to content

Commit

Permalink
fix(package): added missing packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Utzel-Butzel committed Jul 7, 2020
1 parent b89e07a commit 11e16ad
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 47 deletions.
104 changes: 58 additions & 46 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,66 @@
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

trigger:
- next
- next

pool:
vmImage: 'ubuntu-latest'

steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install
npm run semantic-release
npm run build
npm run build:storybook
displayName: 'npm build storybook and publish'

- task: Bash@3
inputs:
targetType: 'inline'
script: |
PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
echo "Package version"
echo $PACKAGE_VERSION
NPM_VERSION=${PACKAGE_VERSION//./-}
echo $NPM_VERSION
echo '##vso[task.setvariable variable=NPM_VAR]'$NPM_VERSION
- task: S3Upload@1
inputs:
awsCredentials: 'WFP UI-Kit'
regionName: 'eu-west-1'
bucketName: 'uikit.wfp.org'
sourceFolder: './dist'
globExpressions: '**'
targetFolder: "dist$(NPM_VAR)"
createBucket: true
logRequest: true
logResponse: true

- task: S3Upload@1
inputs:
awsCredentials: 'WFP UI-Kit'
regionName: 'eu-west-1'
bucketName: 'uikit.wfp.org'
sourceFolder: './docs'
globExpressions: '**'
targetFolder: "docs"
createBucket: true
logRequest: true
logResponse: true
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install
npm run semantic-release
npm run build
npm run build:storybook
displayName: 'npm install'
- script: |
npm run semantic-release
displayName: 'npm run semantic-release'
- script: |
npm run build
displayName: 'npm run build'
- script: |
npm run build:storybook
displayName: 'npm run build:storybook'
- task: Bash@3
inputs:
targetType: 'inline'
script: |
PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
echo "Package version"
echo $PACKAGE_VERSION
NPM_VERSION=${PACKAGE_VERSION//./-}
echo $NPM_VERSION
echo '##vso[task.setvariable variable=NPM_VAR]'$NPM_VERSION
- task: S3Upload@1
inputs:
awsCredentials: 'WFP UI-Kit'
regionName: 'eu-west-1'
bucketName: 'uikit.wfp.org'
sourceFolder: './dist'
globExpressions: '**'
targetFolder: 'dist$(NPM_VAR)'
createBucket: true
logRequest: true
logResponse: true

- task: S3Upload@1
inputs:
awsCredentials: 'WFP UI-Kit'
regionName: 'eu-west-1'
bucketName: 'uikit.wfp.org'
sourceFolder: './docs'
globExpressions: '**'
targetFolder: 'docs'
createBucket: true
logRequest: true
logResponse: true
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wfp/ui",
"version": "0.0.0-development",
"version": "1.5.0",
"description": "WFP UI Kit Next",
"license": "Apache-2",
"main": "dist/index.js",
Expand Down Expand Up @@ -147,6 +147,7 @@
"@storybook/react": "^6.0.0-beta.39",
"@storybook/theming": "^6.0.0-beta.39",
"@tippy.js/react": "^3.1.1",
"@wfp/icons": "^0.0.82",
"add": "^2.0.6",
"all-contributors-cli": "^6.14.1",
"autoprefixer": "^9.7.6",
Expand Down

0 comments on commit 11e16ad

Please sign in to comment.