File tree Expand file tree Collapse file tree 1 file changed +23
-14
lines changed Expand file tree Collapse file tree 1 file changed +23
-14
lines changed Original file line number Diff line number Diff line change 33# Add steps that analyze code, save build artifacts, deploy, and more:
44# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
55
6- pool :
7- vmImage : ' ubuntu-latest'
8-
96steps :
7+ - task : gitversion/setup@0
8+ inputs :
9+ versionSpec : ' 5.x'
10+
11+ - task : gitversion/execute@0
12+
13+ - task : Bash@3
14+ displayName : Update version number in react-spaces package.json to $(GitVersion.SemVer)
15+ inputs :
16+ targetType : ' inline'
17+ script : sed -i "s/0.0.1/$GITVERSIONNUMBER/g" package.json
18+ env :
19+ GITVERSIONNUMBER : $(GitVersion.SemVer)
20+
21+ - task : Bash@3
22+ displayName : Update version number in react-spaces-storybook package.json to $(GitVersion.SemVer)
23+ inputs :
24+ targetType : ' inline'
25+ script : sed -i "s/0.0.1/$GITVERSIONNUMBER/g" .storybook/package.json
26+ env :
27+ GITVERSIONNUMBER : $(GitVersion.SemVer)
28+
1029- task : NodeTool@0
1130 inputs :
1231 versionSpec : ' 12.x'
@@ -24,19 +43,9 @@ steps:
2443 inputs :
2544 SourceFolder : ' .storybook'
2645 Contents : ' package.json'
27- TargetFolder : ' storybook-static'
46+ TargetFolder : ' ./ storybook-static'
2847 OverWrite : true
2948
30- - task : npmAuthenticate@0
31- inputs :
32- workingFile : ' .npmrc'
33- customEndpoint : ' NPM'
34-
35- - task : npmAuthenticate@0
36- inputs :
37- workingFile : ' storybook-static/.npmrc'
38- customEndpoint : ' NPM'
39-
4049- task : Npm@1
4150 displayName : Publish react-spaces-storybook
4251 inputs :
You can’t perform that action at this time.
0 commit comments