chore(deps): update codecov/codecov-action action to v5 #1926
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: workflow | |
on: [push] | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
container: node:lts | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Prepare | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm test | |
- name: Upload Coverage to coveralls | |
uses: coverallsapp/github-action@v1.2.5 | |
with: | |
# This `github_token` secret is default token (restricted token) | |
github-token: ${{ secrets.github_token }} | |
- name: Upload Coverage to codecov | |
uses: codecov/codecov-action@v5.0.3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Publish | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
# npm will not execute `prepublisnOnly` lifecycle hook if user is root. | |
# @see https://github.com/semantic-release/semantic-release/issues/956#issuecomment-431097773 | |
run: | | |
npm run prepublishOnly | |
npx semantic-release | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |