This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
deps: update dependency @types/node to ^18.19.55 #218
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
CI: 1 | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-20.04 | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- uses: actions/[email protected] | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- uses: ./.github/actions/setup-env | |
- name: ESLint | |
run: yarn lint | |
website: | |
name: Website | |
runs-on: ubuntu-20.04 | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
needs: [lint] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
token: ${{ secrets.TOPHAT_BOT_GH_TOKEN }} | |
fetch-depth: 0 | |
- uses: ./.github/actions/setup-env | |
- name: Build Website | |
if: "github.event_name == 'pull_request'" | |
run: yarn build | |
- name: Build & Deploy Website | |
if: "github.event_name == 'push' && github.ref == 'refs/heads/main'" | |
run: | | |
git checkout gh-pages | |
git reset --hard main | |
yarn build | |
git add docs | |
git commit -m "chore: update website" -n | |
git push --force origin gh-pages |