Skip to content

Commit

Permalink
trying to go with composite??????
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Parker committed Jul 25, 2024
1 parent 2e10874 commit 869b783
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/genparker-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
needs: init
steps:
- uses: BesLogic/releaf-genparker/.github/workflows/monorepo-setup.yml@main
- uses: BesLogic/releaf-genparker@v1

- name: publish affected
run: npx nx affected --target=publish --head=${{needs.init.outputs.branch}} --base=$BEFORE_SHA --configuration=${{needs.init.outputs.environment}} --parallel=5
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
runs-on: ubuntu-latest
needs: init
steps:
- uses: BesLogic/releaf-genparker/.github/workflows/monorepo-setup.yml@main
- uses: BesLogic/releaf-genparker@v1

- name: Install dependencies Mobile
run: cd apps/releaf/mobile && npm i --ignore-scripts
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

name: 'Monorepo setup'
description: 'A way to install and cache dependencies for a monorepo'
runs:
using: "composite"
steps:
- name: 'Build:checkout'
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: 'login'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-

- name: Install dependencies
run: npm i --ignore-scripts
28 changes: 0 additions & 28 deletions .github/workflows/monorepo-setup.yml

This file was deleted.

0 comments on commit 869b783

Please sign in to comment.