Skip to content

chore(deps): update codecov/codecov-action action to v4 #1834

chore(deps): update codecov/codecov-action action to v4

chore(deps): update codecov/codecov-action action to v4 #1834

Workflow file for this run

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@v4.3.0
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 }}