chore(deps): update celo packages (major) #1473
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: Test and Deploy | |
on: | |
# Run on pushes to main.. | |
push: | |
branches: | |
- main | |
# ..and any pull request. | |
pull_request: | |
concurrency: | |
group: env-${{ github.ref }} | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
check-latest: true | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
- run: yarn | |
- run: yarn test | |
- name: Upload Coverage Report | |
uses: actions/upload-artifact@v4 | |
with: | |
path: coverage/lcov-report | |
- name: 'Upload coverage to Codecov' | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
publish: | |
name: Publish to NPM | |
if: github.ref == 'refs/heads/main' | |
needs: | |
- test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
check-latest: true | |
- name: Install dependencies | |
run: yarn | |
- name: Prepublish | |
run: yarn prepublish | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: yarn release |