chore: always bump renovate #729
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: CI & Release | |
on: | |
push: | |
pull_request: | |
branches: | |
- alpha | |
- beta | |
- next | |
- main | |
jobs: | |
test: | |
runs-on: ${{ matrix.platform }} | |
name: Node.js ${{ matrix.node-version }} / ${{ matrix.platform }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ubuntu-latest] | |
node-version: [lts/*, current] | |
include: | |
- platform: macos-latest | |
node-version: lts/* | |
env: | |
CYPRESS_CACHE_FOLDER: '~/.cache/Cypress' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: corepack enable && pnpm --version | |
- run: pnpm install | |
- run: pnpm build | |
- run: pnpm lint | |
- run: pnpm test | |
- run: pnpm test:browser | |
- name: Upload Cypress Artifacts | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cypress | |
path: | | |
cypress/screenshots | |
cypress/videos | |
release: | |
name: 'Semantic release' | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# Need to fetch entire commit history to | |
# analyze every commit since last release | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- run: corepack enable && pnpm --version | |
- run: pnpm install | |
# Branches that will release new versions are defined in .releaserc.json | |
- run: pnpm exec semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |