Skip to content

Commit 3d3e69d

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 94d18ab + df4e9ef commit 3d3e69d

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

azure-pipelines.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,29 @@
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-
96
steps:
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:

0 commit comments

Comments
 (0)