Skip to content

Commit f454165

Browse files
committed
Initial node 20.x update
1 parent f15a854 commit f454165

File tree

9 files changed

+37133
-33352
lines changed

9 files changed

+37133
-33352
lines changed

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
registry=https://registry.npmjs.org/
1+
registry=https://registry.npmjs.org/
2+
legacy-peer-deps=true

azure-pipelines.yml

Lines changed: 52 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,65 @@
44
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
55

66
pool:
7-
vmImage: "ubuntu-latest"
7+
vmImage: "ubuntu-latest"
88

99
steps:
10-
- task: gitversion/setup@0
11-
inputs:
12-
versionSpec: '5.x'
13-
14-
- task: gitversion/execute@0
10+
- task: gitversion/setup@0
11+
inputs:
12+
versionSpec: "5.x"
1513

16-
- script: echo "##vso[build.updatebuildnumber]$(GitVersion.MajorMinorPatch)"
14+
- task: gitversion/execute@0
1715

18-
- task: Bash@3
19-
displayName: Update version number in react-spaces package.json
20-
inputs:
21-
targetType: 'inline'
22-
script: sed -i "s/0.2.2/$GITVERSIONNUMBER/g" package.json
23-
env:
24-
GITVERSIONNUMBER: $(GitVersion.MajorMinorPatch)
16+
- script: echo "##vso[build.updatebuildnumber]$(GitVersion.MajorMinorPatch)"
2517

26-
- task: Bash@3
27-
displayName: Update version number in react-spaces-storybook package.json
28-
inputs:
29-
targetType: 'inline'
30-
script: sed -i "s/0.2.2/$GITVERSIONNUMBER/g" .storybook/package.json
31-
env:
32-
GITVERSIONNUMBER: $(GitVersion.MajorMinorPatch)
18+
- task: Bash@3
19+
displayName: Update version number in react-spaces package.json
20+
inputs:
21+
targetType: "inline"
22+
script: sed -i "s/0.2.2/$GITVERSIONNUMBER/g" package.json
23+
env:
24+
GITVERSIONNUMBER: $(GitVersion.MajorMinorPatch)
3325

34-
- task: NodeTool@0
35-
inputs:
36-
versionSpec: '12.x'
37-
checkLatest: true
38-
displayName: 'Install Node.js'
26+
- task: Bash@3
27+
displayName: Update version number in react-spaces-storybook package.json
28+
inputs:
29+
targetType: "inline"
30+
script: sed -i "s/0.2.2/$GITVERSIONNUMBER/g" .storybook/package.json
31+
env:
32+
GITVERSIONNUMBER: $(GitVersion.MajorMinorPatch)
3933

40-
- script: |
41-
npm install
42-
npm run build
43-
npm run build-storybook
44-
displayName: 'NPM install and build'
34+
- task: NodeTool@0
35+
inputs:
36+
versionSpec: "20.x"
37+
checkLatest: true
38+
displayName: "Install Node.js"
4539

46-
- task: CopyFiles@2
47-
displayName: Move storybook package json
48-
inputs:
49-
SourceFolder: '.storybook'
50-
Contents: 'package.json'
51-
TargetFolder: './storybook-static'
52-
OverWrite: true
40+
- script: |
41+
npm install
42+
npm test
43+
npm run build
44+
npm run build-storybook
45+
displayName: "NPM install and build"
5346
54-
- task: Npm@1
55-
enabled: true
56-
displayName: Publish react-spaces-storybook
57-
inputs:
58-
command: 'publish'
59-
workingDir: 'storybook-static'
60-
publishEndpoint: 'NPM'
47+
- task: CopyFiles@2
48+
displayName: Move storybook package json
49+
inputs:
50+
SourceFolder: ".storybook"
51+
Contents: "package.json"
52+
TargetFolder: "./storybook-static"
53+
OverWrite: true
6154

62-
- task: Npm@1
63-
enabled: true
64-
displayName: Publish react-spaces
65-
inputs:
66-
command: 'publish'
67-
publishEndpoint: 'NPM'
55+
- task: Npm@1
56+
enabled: true
57+
displayName: Publish react-spaces-storybook
58+
inputs:
59+
command: "publish"
60+
workingDir: "storybook-static"
61+
publishEndpoint: "NPM"
62+
63+
- task: Npm@1
64+
enabled: true
65+
displayName: Publish react-spaces
66+
inputs:
67+
command: "publish"
68+
publishEndpoint: "NPM"

0 commit comments

Comments
 (0)