From 95c7257919ed1d57d8738fc8c9e1c0fc32089907 Mon Sep 17 00:00:00 2001 From: Emil Bektimirov Date: Sat, 4 May 2024 15:23:07 +0200 Subject: [PATCH] Add github pages action --- .github/workflows/publish-github-pages.yml | 37 ++++++++++++++++++++++ package.json | 3 +- packages/randomface-react/package.json | 2 +- pnpm-lock.yaml | 2 +- 4 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/publish-github-pages.yml diff --git a/.github/workflows/publish-github-pages.yml b/.github/workflows/publish-github-pages.yml new file mode 100644 index 0000000..05d1180 --- /dev/null +++ b/.github/workflows/publish-github-pages.yml @@ -0,0 +1,37 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main + +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 diff --git a/package.json b/package.json index 0cb0560..7049cc7 100644 --- a/package.json +++ b/package.json @@ -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" } \ No newline at end of file diff --git a/packages/randomface-react/package.json b/packages/randomface-react/package.json index 8c999e5..95a070b 100644 --- a/packages/randomface-react/package.json +++ b/packages/randomface-react/package.json @@ -43,6 +43,6 @@ "types": "./dist/randomface.d.ts", "license": "MIT", "dependencies": { - "randomface": "^0.1.0" + "randomface": "workspace:^" } } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e6cdafe..33a138b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -211,7 +211,7 @@ importers: packages/randomface-react: dependencies: randomface: - specifier: ^0.1.0 + specifier: workspace:^ version: link:../randomface devDependencies: '@repo/eslint-config':