Skip to content

Commit bd4b794

Browse files
chore: CICD remove old layers
1 parent b8c433c commit bd4b794

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/pull-request.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,37 @@ jobs:
1515
uses: ./.github/workflows/common-build.yml
1616
secrets: inherit
1717

18+
remove-old-layers:
19+
runs-on: ubuntu-latest
20+
needs: build
21+
concurrency:
22+
group: remove-all-layers
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Use Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ env.node_version }}
29+
registry-url: 'https://registry.npmjs.org'
30+
- name: Download build artifact
31+
uses: actions/download-artifact@v4
32+
with:
33+
name: dist
34+
path: dist
35+
- name: Configure AWS Credentials
36+
uses: aws-actions/configure-aws-credentials@v4
37+
with:
38+
aws-region: eu-west-1
39+
role-to-assume: ${{ secrets.AWS_ROLE }}
40+
role-session-name: GitHubActions
41+
- name: Remove old layers
42+
run: |
43+
node dist/lldebugger.mjs -r all
44+
1845
test:
1946
uses: ./.github/workflows/common-test.yml
2047
secrets: inherit
21-
needs: build
48+
needs: remove-old-layers
2249
with:
2350
mode: build
2451
testMonorepo: false

0 commit comments

Comments
 (0)