File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,40 +2,40 @@ name: 'Release - Snapshot'
22
33on :
44 push :
5- branches :
5+ branches :
66 - master
77
88jobs :
99 build :
1010 if : " !contains(github.event.head_commit.message, '[ci skip]')"
1111 runs-on : ubuntu-latest
12-
12+
1313 steps :
1414 - uses : actions/checkout@v2.3.2
1515 with :
1616 token : ${{ secrets.ACCESS_TOKEN }}
1717 fetch-depth : 0
1818
19- - name : Use Node.js
20- uses : actions/setup-node@v2.1.0
21- with :
22- node-version : ' 12.x'
23-
24- - name : Install, test and build
25- run : |
26- yarn install
27- yarn test
28- yarn build
29-
30- - name : publish
31- run : |
32- npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
33- git config user.email ${{ secrets.BOT_GIT_EMAIL }}
34- git config user.name ${{ secrets.BOT_GIT_USERNAME }}
35-
36- git_hash=$(git rev-parse --short "$GITHUB_SHA")
37-
38- ${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish "0.0.0-${git_hash}" \
39- --no-push \
40- --no-git-tag-version \
41- --dist-tag dev \
19+ - name : Use Node.js
20+ uses : actions/setup-node@v2.1.0
21+ with :
22+ node-version : ' 12.x'
23+
24+ - name : Install, test and build
25+ run : |
26+ yarn install
27+ yarn test
28+ yarn build
29+
30+ - name : publish
31+ run : |
32+ npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
33+ git config user.email ${{ secrets.BOT_GIT_EMAIL }}
34+ git config user.name ${{ secrets.BOT_GIT_USERNAME }}
35+
36+ git_hash=$(git rev-parse --short "$GITHUB_SHA")
37+
38+ ${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish "0.0.0-${git_hash}" \
39+ --no-push \
40+ --no-git-tag-version \
41+ --dist-tag dev \
You can’t perform that action at this time.
0 commit comments