chore(deps): lock file maintenance #124
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 studio | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: 'pages' | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Lint, format, test and build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- uses: pnpm/action-setup@v2 | |
- name: Use Node LTS ✨ | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: Install dependencies 📦️ | |
run: pnpm install --frozen-lockfile | |
- name: Lint 💅 | |
run: pnpm lint | |
- name: Build 🔨 | |
run: pnpm build | |
- run: cp ./dist/index.html ./dist/404.html | |
- name: Upload GitHub Pages assets 📦️ | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: ./dist | |
deploy: | |
name: Deployment | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages 🚀 | |
id: deployment | |
uses: actions/deploy-pages@v2 |