Skip to content

Commit

Permalink
Update depdencies and github actions to cache pnpm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Jarjour committed Sep 1, 2023
1 parent d8dc111 commit 1ad6947
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
# This is a basic workflow to help you get started with Actions

name: CD
name: Build & Deploy

# Controls when the workflow will run
on:
push:
branches: ["main"]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3

- name: Set Node.js 18.x
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18.x

node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- run: pnpm build
run: pnpm install

- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"author": "Mark Jarjour",
"license": "SEE LICENSE IN LICENSE.md",
"private": true,
"packageManager": "pnpm@8.7.0",
"scripts": {
"build": "pnpm lint --max-warnings 0 && tsc && vite build",
"dev": "vite",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@tsconfig/vite-react/tsconfig.json",
"compilerOptions": {
"baseUrl": "./src",
"verbatimModuleSyntax": true,

"allowUnreachableCode": false,
"exactOptionalPropertyTypes": false, // Hard to use regular React coding styles with this.
Expand All @@ -11,6 +11,6 @@
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,

"verbatimModuleSyntax": true
"baseUrl": "./src"
}
}

0 comments on commit 1ad6947

Please sign in to comment.