-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.45 KB
/
deploy-changed-apps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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'