Skip to content

Commit 2b4ffb9

Browse files
committed
ci: turbo cache
1 parent be3f64f commit 2b4ffb9

File tree

3 files changed

+52
-105
lines changed

3 files changed

+52
-105
lines changed

.github/workflows/ci.yaml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
id-token: write
10+
contents: write
11+
12+
env:
13+
TURBO_TELEMETRY_DISABLED: 1
14+
15+
jobs:
16+
cache-and-install:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup turborepo cache
23+
uses: dtinth/setup-github-actions-caching-for-turbo@v1
24+
25+
- name: Install pnpm
26+
uses: pnpm/action-setup@v3
27+
with:
28+
version: 8
29+
30+
- name: Install Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
cache: "pnpm"
35+
36+
- name: Install dependencies
37+
run: pnpm install
38+
39+
- name: Build apps and packages
40+
run: pnpm build
41+
42+
- name: Deploy to GitHub Pages
43+
uses: JamesIves/github-pages-deploy-action@v4.5.0
44+
with:
45+
branch: gh-pages
46+
folder: apps/playground/dist
47+
48+
- name: Publish packages to NPM
49+
shell: bash
50+
run: |
51+
echo "//registry.npmjs.org/:_authToken="${{ secrets.NPM_TOKEN }}"" > ~/.npmrc
52+
pnpm -r --filter='./apps/*' publish --access public --provenance

.github/workflows/gh-pages.yaml

-51
This file was deleted.

.github/workflows/npm-publish.yaml

-54
This file was deleted.

0 commit comments

Comments
 (0)