Skip to content

Merge branch 'master' of github.com:molvqingtai/testing-library-by-class #18

Merge branch 'master' of github.com:molvqingtai/testing-library-by-class

Merge branch 'master' of github.com:molvqingtai/testing-library-by-class #18

Workflow file for this run

name: CD
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: pnpm/[email protected]
with:
version: latest
- run: pnpm install --ignore-scripts
- run: pnpm run lint
- run: pnpm run tsc
tests:
needs: linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: pnpm/[email protected]
with:
version: latest
- run: pnpm install --ignore-scripts
- run: pnpm run test
release:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# https://github.com/semantic-release/semantic-release/issues/2636
with:
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: pnpm/[email protected]
with:
version: latest
- run: pnpm install --ignore-scripts
- run: pnpm run build
- run: pnpx semantic-release
env:
GH_TOKEN: ${{ secrets.TESTING_LIBRARY_EXTRA_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.TESTING_LIBRARY_EXTRA_NPM_TOKEN }}