feat: 🎸 Upgrade libs & support react 18 #28
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, build and publish | |
on: | |
push: | |
branches: | |
- master | |
env: | |
CI: true | |
jobs: | |
test-build-publish: | |
name: Test and build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Test | |
run: npm run test:coverage | |
- name: Build | |
run: npm run build | |
- name: Publish | |
run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} |