diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0eb3dd6..86bfb9e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,17 +6,66 @@ on: - main jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + version: 7.26.3 + run_install: false + + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: pnpm + + - name: Install Packages + - run: pnpm i --frozen-lockfile + + - name: Lint + run: pnpm run lint + + deploy: + needs: lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 + + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + version: 7.26.3 + run_install: false + + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + - uses: actions/setup-node@v3 with: node-version: 16 - cache: yarn - - run: yarn install --frozen-lockfile + cache: pnpm + + - name: Install Packages + - run: pnpm i --frozen-lockfile - name: Build run: yarn docs:build