Merge pull request #12 from Kong/dependabot/npm_and_yarn/kong-package… #13
This file contains hidden or 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: PR | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| name: Build & Deploy | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # Required to deploy to gh-pages | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 # version is determined from the packageManager field in package.json by default. | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: pnpm | |
| - name: Install dependency | |
| timeout-minutes: 5 | |
| run: pnpm install | |
| - name: Build | |
| run: pnpm build:gh-pages | |
| - name: Deploy to GH Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ github.token }} | |
| publish_branch: gh-pages | |
| publish_dir: dist |