File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed
Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 9595 run : yarn cover
9696 if : env.GIT_DIFF || github.event_name == 'push'
9797 - name : Codecov
98- run : curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
98+ run : |
99+ if [ -n "$CODECOV_TOKEN" ]; then
100+ curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
101+ fi
99102 env :
100103 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
101104 COVERAGE_FILE : ./coverage/lcov.info
Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - name : Draft Release
12- uses : toolmantim /release-drafter@v5.2.0
12+ uses : release-drafter /release-drafter@v5
1313 env :
1414 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 8484 run : yarn build
8585 - name : Publish
8686 run : |
87- npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
88- npm publish
87+ if [ -n "$NPM_AUTH_TOKEN" ]; then
88+ npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
89+ npm publish
90+ fi
8991 env :
9092 NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
9193 if : matrix.target == 'npm'
Original file line number Diff line number Diff line change 1313 uses : technote-space/toc-generator@v2
1414 with :
1515 GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
16- API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1716 TARGET_BRANCH_PREFIX : release/
Original file line number Diff line number Diff line change 1616 uses : technote-space/create-pr-action@v1
1717 with :
1818 GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
19- API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2019 EXECUTE_COMMANDS : |
2120 npx npm-check-updates -u --packageFile package.json
2221 yarn install
You can’t perform that action at this time.
0 commit comments