refactor(nav): ♻️ refactor code using CSS Sprites #144
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: Vote CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [dev] | |
paths: | |
- '.github/workflows/vote-ci.yml' | |
- 'pnpm-lock.yaml' | |
- 'packages/vote/**' | |
jobs: | |
build: | |
name: Build and Deploy to Vercel | |
runs-on: ubuntu-20.04 | |
if: github.repository == 'PatchyVideo/Touhou-Vote' | |
environment: Vote-CI | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
check-latest: true | |
- name: Cache pnpm modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- uses: pnpm/action-setup@v2.2.1 | |
with: | |
version: 8.3.1 | |
run_install: | | |
args: [--frozen-lockfile, --strict-peer-dependencies] | |
timeout-minutes: 10 | |
- name: Codegen | |
run: pnpm codegen | |
working-directory: ./packages/vote | |
timeout-minutes: 5 | |
- name: Build | |
run: pnpm build | |
working-directory: ./packages/vote | |
timeout-minutes: 15 | |
- name: Deploy to Vercel | |
uses: amondnet/vercel-action@v20 | |
with: | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} | |
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} | |
vercel-args: '--prod' | |
working-directory: ./packages/vote/dist | |
github-comment: false | |
timeout-minutes: 5 |