Skip to content

ci(github actions): try #13

ci(github actions): try

ci(github actions): try #13

name: deploy-changed-apps
on:
push:
branches:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
name: Check affected apps
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Restore cached npm dependencies
uses: actions/cache/restore@v3
with:
path: |
node_modules
~/.cache/Cypress # needed for the Cypress binary
key: npm-dependencies-${{ hashFiles('package.json') }}
- run: npx [email protected] affected -t docker-compose
- run: pnpm install -D
- name: Cache npm dependencies
uses: actions/cache/save@v3
with:
path: |
node_modules
~/.cache/Cypress # needed for the Cypress binary
key: npm-dependencies-${{ hashFiles('package.json') }}
# - run: npm i -D
# - run: npx [email protected] affected -t docker-compose
# - run: npm add --global nx@latest
# - run: npm ls --depth=0 --parseable=true | grep '/@nx/' | awk -F'/' '{printf "%s/%s\n", $(NF-1), $NF}' | xargs npm install
# - run: npx nx@latest affected -t docker-compose
# - run: npx nx affected -t docker-compose
# - run: npm add --global nx@latest
# - run: nx affected -t docker-compose
# - uses: mansagroup/nrwl-nx-action@v3
# with:
# targets: docker-compose
# affected: 'true'