From d11617ffc7d10048824c0fdec282506a089e6e0b Mon Sep 17 00:00:00 2001 From: Emil Bektimirov Date: Sat, 4 May 2024 15:28:59 +0200 Subject: [PATCH] Add github pages workflow --- .github/workflows/publish-github-pages.yml | 41 ++++++++++++++ package.json | 3 +- packages/randomface-react/package.json | 2 +- pnpm-lock.yaml | 65 +++++++++++++++++++++- 4 files changed, 108 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..b3ebaa7 --- /dev/null +++ b/.github/workflows/publish-github-pages.yml @@ -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 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..c1c0147 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,6 +35,9 @@ importers: tailwindcss: specifier: ^3.3.0 version: 3.4.1 + turbo: + specifier: latest + version: 1.13.3 typescript: specifier: ^5 version: 5.3.3 @@ -211,7 +214,7 @@ importers: packages/randomface-react: dependencies: randomface: - specifier: ^0.1.0 + specifier: workspace:^ version: link:../randomface devDependencies: '@repo/eslint-config': @@ -6495,6 +6498,66 @@ packages: typescript: 5.3.3 dev: true + /turbo-darwin-64@1.13.3: + resolution: {integrity: sha512-glup8Qx1qEFB5jerAnXbS8WrL92OKyMmg5Hnd4PleLljAeYmx+cmmnsmLT7tpaVZIN58EAAwu8wHC6kIIqhbWA==} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /turbo-darwin-arm64@1.13.3: + resolution: {integrity: sha512-/np2xD+f/+9qY8BVtuOQXRq5f9LehCFxamiQnwdqWm5iZmdjygC5T3uVSYuagVFsZKMvX3ycySwh8dylGTl6lg==} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-64@1.13.3: + resolution: {integrity: sha512-G+HGrau54iAnbXLfl+N/PynqpDwi/uDzb6iM9hXEDG+yJnSJxaHMShhOkXYJPk9offm9prH33Khx2scXrYVW1g==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-arm64@1.13.3: + resolution: {integrity: sha512-qWwEl5VR02NqRyl68/3pwp3c/olZuSp+vwlwrunuoNTm6JXGLG5pTeme4zoHNnk0qn4cCX7DFrOboArlYxv0wQ==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-windows-64@1.13.3: + resolution: {integrity: sha512-Nudr4bRChfJzBPzEmpVV85VwUYRCGKecwkBFpbp2a4NtrJ3+UP1VZES653ckqCu2FRyRuS0n03v9euMbAvzH+Q==} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /turbo-windows-arm64@1.13.3: + resolution: {integrity: sha512-ouJCgsVLd3icjRLmRvHQDDZnmGzT64GBupM1Y+TjtYn2LVaEBoV6hicFy8x5DUpnqdLy+YpCzRMkWlwhmkX7sQ==} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /turbo@1.13.3: + resolution: {integrity: sha512-n17HJv4F4CpsYTvKzUJhLbyewbXjq1oLCi90i5tW1TiWDz16ML1eDG7wi5dHaKxzh5efIM56SITnuVbMq5dk4g==} + hasBin: true + optionalDependencies: + turbo-darwin-64: 1.13.3 + turbo-darwin-arm64: 1.13.3 + turbo-linux-64: 1.13.3 + turbo-linux-arm64: 1.13.3 + turbo-windows-64: 1.13.3 + turbo-windows-arm64: 1.13.3 + dev: true + /type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'}