Merge pull request #1 from Console-buche/chore/clean-up-round #4
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: deploy-pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
name: main - Build and deploy | |
runs-on: ubuntu-latest | |
permissions: read-all | |
steps: | |
- name: cloning repo 🛎 | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Enable Node package managers | |
shell: bash | |
run: corepack enable | |
- name: Install dependencies | |
shell: bash | |
run: pnpm install | |
- name: Lint | |
shell: bash | |
run: pnpm lint | |
- name: Typecheck | |
shell: bash | |
run: pnpm typecheck | |
- name: Build | |
shell: bash | |
run: pnpm build | |
- name: deploy to github pages 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: dist # The folder the action should deploy. |