diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9280c0..09b4e12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,8 @@ name: CI -on: push +on: + - push + - pull_request jobs: lint: @@ -31,12 +33,9 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v3 with: - version: 7 + version: 8 - run: pnpm install - run: pnpm run build - - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./build + - run: cd packages/f2elint && pnpm run build diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..dd7e6d9 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,36 @@ +name: GitHub Pages + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-22.04 + permissions: + contents: write + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + + - name: Setup pnpm + uses: pnpm/action-setup@v3 + with: + version: 8 + + - name: Install + run: pnpm install + - name: Build + run: pnpm run build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build