Skip to content

Commit b782e8f

Browse files
committed
refactor: fix workflow
1 parent f531215 commit b782e8f

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/dev_synth.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,25 @@ jobs:
1919
id-token: write
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v5
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v5
26+
with:
27+
node-version: '22'
28+
cache: 'npm'
29+
30+
- name: Install Dependencies
31+
run: npm install
2332

2433
- name: aws switch role
2534
uses: aws-actions/configure-aws-credentials@v1
2635
with:
2736
role-to-assume: ${{ env.AWS_ROLE_ARN }}
2837
aws-region: ap-northeast-1
2938

30-
- name: cdk synth
31-
uses: youyo/aws-cdk-github-actions@v2
32-
with:
33-
cdk_subcommand: 'synth'
34-
cdk_version: '2.1024.1'
35-
working_dir: 'cdk'
36-
cdk_args: '--context stage=dev'
39+
- name: CDK Synth
40+
run: npx cdk synth --context stage=dev
3741
env:
3842
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3943
AWS_DEFAULT_REGION: 'ap-northeast-1'

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
node: [ '22' ]
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v5
2222
- name: Setup NodeJs
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v5
2424
with:
2525
node-version: ${{ matrix.node }}
2626
- name: Install Dependencies

0 commit comments

Comments
 (0)