Feature/ab13618 tab card next #284
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: Github CI | |
on: | |
pull_request: | |
branches: | |
- master | |
- beta | |
push: | |
branches: | |
- master | |
- beta | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 19 | |
cache: 'npm' | |
- name: Install | |
run: npm ci | |
- name: Lint commit messages | |
uses: wagoid/commitlint-github-action@v5 | |
- name: ESLint | |
run: npm run lint | |
- name: Test and report | |
env: | |
GIT_BRANCH: ${{ github.ref == 'refs/heads/master' && 'master' || github.ref }} | |
GIT_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | |
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} | |
run: | | |
echo "::add-matcher::.github/problem-matcher.json" | |
npm test | |
- name: Semantic release | |
run: npx semantic-release | |
if: success() | |
env: | |
HUSKY: 0 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |