Skip to content

Commit

Permalink
ci: turbo cache
Browse files Browse the repository at this point in the history
  • Loading branch information
crashmax-dev committed Mar 24, 2024
1 parent be3f64f commit 2b4ffb9
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 105 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on:
push:
branches:
- main

permissions:
id-token: write
contents: write

env:
TURBO_TELEMETRY_DISABLED: 1

jobs:
cache-and-install:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup turborepo cache
uses: dtinth/setup-github-actions-caching-for-turbo@v1

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build apps and packages
run: pnpm build

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
branch: gh-pages
folder: apps/playground/dist

- name: Publish packages to NPM
shell: bash
run: |
echo "//registry.npmjs.org/:_authToken="${{ secrets.NPM_TOKEN }}"" > ~/.npmrc
pnpm -r --filter='./apps/*' publish --access public --provenance
51 changes: 0 additions & 51 deletions .github/workflows/gh-pages.yaml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/npm-publish.yaml

This file was deleted.

0 comments on commit 2b4ffb9

Please sign in to comment.