Skip to content

Commit

Permalink
Add github pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lefelys committed May 4, 2024
1 parent 627d779 commit d11617f
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 3 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

permissions:
contents: write
pages: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2

- uses: pnpm/action-setup@v2.0.1
with:
version: 8.15.5

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 21
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: apps/web/out
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"tailwindcss": "^3.3.0",
"typescript": "^5",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.2.2"
"vitest": "^1.2.2",
"turbo": "latest"
},
"license": "MIT"
}
2 changes: 1 addition & 1 deletion packages/randomface-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"types": "./dist/randomface.d.ts",
"license": "MIT",
"dependencies": {
"randomface": "^0.1.0"
"randomface": "workspace:^"
}
}
65 changes: 64 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d11617f

Please sign in to comment.