41 lines
911 B
YAML
41 lines
911 B
YAML
|
|
name: Explorer
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- 'explorer/**'
|
|
pull_request_target:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'explorer/**'
|
|
jobs:
|
|
check-explorer:
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: explorer
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
# "node" (v16) is not supported by node-sass yet
|
|
# https://github.com/sass/node-sass/pull/3090
|
|
node-version: '14'
|
|
cache: 'npm'
|
|
cache-dependency-path: explorer/package-lock.json
|
|
- run: npm i -g npm@7
|
|
- run: npm ci
|
|
- run: npm run format
|
|
- run: npm run build
|
|
- run: npm run test
|
|
- name: checking out
|
|
uses: actions/checkout@v2
|
|
- name: Deploying
|
|
run: source publish.sh
|
|
env:
|
|
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
|
|