Skip to content

Commit 2e5e39c

Browse files
Merge pull request #168 from technote-space/chore/chore-sync-workflows
chore: sync workflows
2 parents 1ae6481 + 6d2b930 commit 2e5e39c

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ jobs:
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

.github/workflows/gh_releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
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 }}

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ jobs:
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'

.github/workflows/toc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ jobs:
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/

.github/workflows/update-dependencies.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
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

0 commit comments

Comments
 (0)