File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : New Release Branch
2
+
3
+ on : repository_dispatch
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+ with :
12
+ fetch-depth : 5
13
+ - uses : actions/checkout@v2
14
+ - run : |
15
+ git checkout -b ${{ github.event.client_payload.branch_name }}
16
+ - name : update package.json version and corePublic.ts version
17
+ run : |
18
+ sed -i -e 's/"version": ".*"/"version": "${{ github.event.client_payload.package_version }}"/g' package.json
19
+ sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' src/compiler/corePublic.ts
20
+ sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/typescript.d.ts
21
+ sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/tsserverlibrary.d.ts
22
+ sed -i -e 's/const version = `${versionMajorMinor}.0-.*`/const version = `${versionMajorMinor}.0-${{ github.event.client_payload.core_tag || 'dev' }}`/g' src/compiler/corePublic.ts
23
+ - name : Use node version 12.x
24
+ uses : actions/setup-node@v1
25
+ with :
26
+ node-version : 12.x
27
+ - name : gulp LKG
28
+ run : |
29
+ npm install
30
+ gulp LKG
31
+ npm test
32
+ - uses : actions/checkout@v2
33
+ - run : |
34
+ git diff
35
+ git add package.json
36
+ git add src/compiler/corePublic.ts
37
+ git add tests/baselines/reference/typescript.d.ts
38
+ git add tests/baselines/reference/tsserverlibrary.d.ts
39
+ git add ./lib
40
+ git config user.email "[email protected] "
41
+ git config user.name "TypeScript Bot"
42
+ git commit -m 'Bump version to ${{ github.event.client_payload.package_version }} and LKG'
43
+ git push --set-upstream origin ${{ github.event.client_payload.branch_name }}
You can’t perform that action at this time.
0 commit comments