55 branches :
66 - master
77
8- env :
9- NX_BRANCH : ${{ github.event.number }}
10- NX_RUN_GROUP : ${{ github.run_id }}
11-
128jobs :
13-
14- prepare-env :
15- runs-on : ubuntu-latest
16- outputs :
17- GITHUB_HEAD_REF : ${{ steps.script.outputs.headRef }}
18- GITHUB_BASE_REF : ${{ steps.script.outputs.tagHash }}
19- steps :
20- - uses : actions/checkout@v2
21- with :
22- fetch-depth : 0
23-
24- - name : Cache node modules
25- id : cache
26- uses : actions/cache@v2
27- with :
28- path : |
29- **/node_modules
30- key : ${{ env.DEPENDENCIES_CACHE }}-${{ hashFiles('package-lock.json') }}
31-
32- - name : npm install
33- if : steps.cache.outputs.cache-hit != 'true'
34- run : npm install
35-
36- - name : Set correct env vars
37- id : script
38- uses : ./tools/actions/set-master-vars
39-
409 release :
41- needs : [ prepare-env ]
4210 runs-on : ubuntu-latest
4311 steps :
4412 - uses : actions/checkout@v2
5523
5624 - name : Install dependencies
5725 if : steps.cache.outputs.cache-hit != 'true'
58- run : npm ci --ignore-scripts
26+ run : npm i
5927
6028 - name : GIT config
6129 run : |
7543 echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
7644 npx nx run-many -t publish --all --base origin/master
7745 env :
78- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
79-
80- changelog-task :
81- runs-on : ubuntu-latest
82- needs :
83- - release
84- steps :
85- - uses : actions/checkout@v2
86- with :
87- fetch-depth : 0
88-
89- - name : Cache node modules
90- uses : actions/cache@v2
91- with :
92- path : |
93- **/node_modules
94- key : ${{ env.DEPENDENCIES_CACHE }}-${{ hashFiles('package-lock.json') }}
95-
96- - name : GIT config
97- run : |
98- git config user.name "${GITHUB_ACTOR}"
99- git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
100-
101- - name : nx workspace:version
102- run : npx nx run workspace:version --prod
103- env :
104- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments