fix: Remove needless anchor and Fix build scripts (#350) #572
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
lint: | |
- eslint | |
- stylelint | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: yarn | |
- run: yarn install --immutable | |
- name: Run ${{ matrix.lint }} | |
run: yarn ${{ matrix.lint }} | |
build-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: yarn | |
- run: yarn install --immutable | |
- name: Run build | |
run: | | |
yarn build | |
yarn export | |
env: | |
NEXT_PUBLIC_BASE_URL: ${{ secrets.BASE_URL }} | |
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID: ${{ secrets.GOOGLE_ANALYTICS_ID }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifact | |
path: out |