Skip to content

Commit

Permalink
fix: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
BRAVO68WEB committed Nov 24, 2023
1 parent ab1bd3d commit 78cc158
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 26 deletions.
32 changes: 32 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Setup Node Environment
description: Prepare and install everything for nodejs repo

runs:
using: composite
steps:
- uses: pnpm/action-setup@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install dependencies
shell: bash
run: pnpm i

- name: Restore Turborepo Cache
uses: actions/cache@v3
with:
path: |
apps/**/.turbo
node_modules/.cache/turbo
key: turbo-${{ runner.os }}-${{ github.job }}-${{ github.sha }}
restore-keys: |
turbo-${{ runner.os }}-${{ github.job }}
- name: Build packages
shell: bash
run: pnpm build
19 changes: 19 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build Checks

on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Environment
uses: ./.github/actions/setup
26 changes: 0 additions & 26 deletions .github/workflows/lint.yaml

This file was deleted.

0 comments on commit 78cc158

Please sign in to comment.