ci(github actions): try #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: pnpm install | |
- run: npx [email protected] affected -t docker-compose | |
- 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' |