@@ -2,7 +2,7 @@ name: Release
22on :
33 push :
44 branches :
5- - master
5+ - master
66jobs :
77 release :
88 if : |
@@ -12,47 +12,47 @@ jobs:
1212 runs-on : ubuntu-latest
1313 strategy :
1414 matrix :
15- node-version : [lts/gallium, lts/fermium ]
15+ node-version : [ lts/gallium ]
1616 steps :
17- - name : Checkout
18- uses : actions/checkout@v2
19- with :
20- token : ${{ secrets.GITHUBTYPESCRIPTTDD }}
21- - name : Use Node.js ${{ matrix.node-version }}
22- uses : actions/setup-node@v3
23- with :
24- node-version : ${{ matrix.node-version }}
25- registry-url : https://registry.npmjs.org/
26- - name : Cache node_modules
27- if : github.event_name == 'push' || github.event_name == 'pull_request'
28- uses : actions/cache@v1
29- env :
30- cache-name : cache-node-modules
31- with :
32- path : ~/.npm
33- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
34- restore-keys : |
35- ${{ runner.os }}-build-${{ env.cache-name }}-
36- ${{ runner.os }}-build-
37- ${{ runner.os }}-
38- - name : Install dependencies
39- run : npm ci
40- - name : build library
41- run : npm run build
42- - name : Register Token
43- run : |
44- echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > /home/runner/work/_temp/.npmrc
45- echo "_auth=$NODE_AUTH_TOKEN" >> /home/runner/work/_temp/.npmrc
46- echo "email=<[email protected] >" >> /home/runner/work/_temp/.npmrc 47- echo "always-auth=true" >> /home/runner/work/_temp/.npmrc
48- env :
49- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
50- - name : Release
51- env :
52- GITHUB_TOKEN : ${{ secrets.GITHUBTYPESCRIPTTDD }}
53- GIT_AUTHOR_NAME : typescripttdd
54- GIT_AUTHOR_EMAIL :
[email protected] 55- GIT_COMMITTER_NAME : typescripttdd
56- GIT_COMMITTER_EMAIL : typescripttdd
57- SLACK_WEBHOOK : ${{ secrets.SEMANTIC_RELEASE_SLACK_WEBHOOK }}
58- run : npm run release
17+ - name : Checkout
18+ uses : actions/checkout@v2
19+ with :
20+ token : ${{ secrets.GITHUBTYPESCRIPTTDD }}
21+ - name : Use Node.js ${{ matrix.node-version }}
22+ uses : actions/setup-node@v3
23+ with :
24+ node-version : ${{ matrix.node-version }}
25+ registry-url : https://registry.npmjs.org/
26+ - name : Cache node_modules
27+ if : github.event_name == 'push' || github.event_name == 'pull_request'
28+ uses : actions/cache@v1
29+ env :
30+ cache-name : cache-node-modules
31+ with :
32+ path : ~/.npm
33+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
34+ restore-keys : |
35+ ${{ runner.os }}-build-${{ env.cache-name }}-
36+ ${{ runner.os }}-build-
37+ ${{ runner.os }}-
38+ - name : Install dependencies
39+ run : npm ci
40+ - name : build library
41+ run : npm run build
42+ - name : Register Token
43+ run : |
44+ echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > /home/runner/work/_temp/.npmrc
45+ echo "_auth=$NODE_AUTH_TOKEN" >> /home/runner/work/_temp/.npmrc
46+ echo "email=<[email protected] >" >> /home/runner/work/_temp/.npmrc 47+ echo "always-auth=true" >> /home/runner/work/_temp/.npmrc
48+ env :
49+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
50+ - name : Release
51+ env :
52+ GITHUB_TOKEN : ${{ secrets.GITHUBTYPESCRIPTTDD }}
53+ GIT_AUTHOR_NAME : typescripttdd
54+ GIT_AUTHOR_EMAIL :
[email protected] 55+ GIT_COMMITTER_NAME : typescripttdd
56+ GIT_COMMITTER_EMAIL : typescripttdd
57+ SLACK_WEBHOOK : ${{ secrets.SEMANTIC_RELEASE_SLACK_WEBHOOK }}
58+ run : npm run release
0 commit comments