Skip to content

Commit

Permalink
fix: codecov upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Aegean09 committed May 22, 2024
1 parent 14370f3 commit 6346f7c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 30 deletions.
62 changes: 32 additions & 30 deletions .github/workflows/betapublish.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
name: Pre-Release
on:
release:
types: [prereleased]
release:
types: [prereleased]
jobs:
Publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm install
- name: Test
run: npm run test
- uses: codecov/codecov-action@v4
with:
files: coverage/*.json
flags: unittests
name: react-carousel-codecov
fail_ci_if_error: true
verbose: true
- name: Build
run: npm run build
- name: Publish
run: npm publish --access=public --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm install
- name: Test
run: npm run test
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage/*.json
flags: unittests
name: react-carousel-codecov
fail_ci_if_error: true
verbose: true
- name: Build
run: npm run build
- name: Publish
run: npm publish --access=public --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/prchecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- name: Test
run: npm run test
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage/*.json
flags: unittests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
- name: Test
run: npm run test
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage/*.json
flags: unittests
Expand Down

0 comments on commit 6346f7c

Please sign in to comment.