chore: do only update deploy branch, not main #656
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: tests | |
on: | |
push: | |
branches-ignore: | |
- deploy | |
tags-ignore: | |
- "*" | |
jobs: | |
build: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [lts/*] | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@master | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- name: test | |
run: ./test.sh | |
env: | |
NODE_ENV: production | |
- name: Build docs | |
run: npm run docs:build | |
env: | |
NODE_ENV: production |