Skip to content

Commit 74555c1

Browse files
committed
Update to Node.js 22.x LTS
- Updated GitHub Actions workflow to use Node.js 22.x (current LTS) - Added engines field to package.json to enforce Node.js >=22.0.0 - Updated CONTRIBUTING.md to reflect Node.js 22+ requirement - Node.js 20.x reaches EOL April 30, 2026 - moving to current LTS
1 parent e07e5b8 commit 74555c1

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Use Node.js 20.x
1616
uses: actions/setup-node@v3
1717
with:
18-
node-version: 20.x
18+
node-version: 22.x
1919
- name: Run tests
2020
run: |
2121
npm ci

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikiped
6161
## Development
6262

6363
### Prerequisites
64-
- Node.js 20+
64+
- Node.js 22+ (LTS)
6565
- npm
6666

6767
### Setup

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## AWS CloudFormation "Deploy CloudFormation Stack" Action for GitHub Actions
1+
# AWS CloudFormation "Deploy CloudFormation Stack" Action for GitHub Actions
22

33
![Package](https://github.com/aws-actions/aws-cloudformation-github-deploy/workflows/Package/badge.svg)
44
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -23,6 +23,7 @@ The action can be passed a CloudFormation Stack `name` and a `template` file. Th
2323
This action supports three modes of operation for better change set management:
2424

2525
### 1. Create & Execute (Default)
26+
2627
```yaml
2728
- name: Deploy CloudFormation Stack
2829
uses: aws-actions/aws-cloudformation-github-deploy@v1
@@ -32,6 +33,7 @@ This action supports three modes of operation for better change set management:
3233
```
3334

3435
### 2. Create Change Set Only (Review Mode)
36+
3537
```yaml
3638
- name: Create Change Set for Review
3739
id: create-changeset
@@ -51,6 +53,7 @@ This action supports three modes of operation for better change set management:
5153
```
5254

5355
### 3. Execute Existing Change Set
56+
5457
```yaml
5558
- name: Execute Change Set
5659
uses: aws-actions/aws-cloudformation-github-deploy@v1
@@ -61,6 +64,7 @@ This action supports three modes of operation for better change set management:
6164
```
6265

6366
### Drift-Aware Change Sets
67+
6468
Create change sets that can revert resource drift:
6569

6670
```yaml
@@ -86,6 +90,7 @@ Override multiple parameters separated by commas: `"MyParam1=myValue1,MyParam2=m
8690
Override a comma delimited list: `"MyParam1=myValue1,MyParam1=myValue2"` or `MyParam1="myValue1,myValue2"`
8791

8892
Override parameters using a local JSON file: `"file:///${{ github.workspace }}/parameters.json"` with a file named `parameters.json` at the root of the repository:
93+
8994
```json
9095
[
9196
{
@@ -142,22 +147,27 @@ This action requires the following minimum set of permissions:
142147
The action makes the following AWS CloudFormation API calls depending on the operation mode:
143148

144149
**All Modes:**
150+
145151
- `DescribeStacks` - Check if stack exists and get current status
146152
- `CreateChangeSet` - Create change set for stack creation or updates
147153
- `DescribeChangeSet` - Check change set status and retrieve changes
148154

149155
**Create & Execute Mode (default):**
156+
150157
- `ExecuteChangeSet` - Execute the created change set
151158
- `DescribeStacks` - Get final stack status and outputs after execution
152159

153160
**Create Only Mode:**
161+
154162
- No additional calls (change set left for manual review/execution)
155163

156164
**Execute Only Mode:**
165+
157166
- `ExecuteChangeSet` - Execute existing change set by ID
158167
- `DescribeStacks` - Get final stack status and outputs after execution
159168

160169
**Error Reporting (when change set creation fails):**
170+
161171
- `DescribeStackEvents` - Retrieve detailed error information for validation failures
162172
- `DeleteChangeSet` - Clean up failed change sets (unless `no-delete-failed-changeset` is set)
163173

@@ -236,6 +246,7 @@ If you run in self-hosted environments and in secured environment where you need
236246
Additionally this action will always consider already configured proxy in the environment.
237247
238248
Manually configured proxy:
249+
239250
```yaml
240251
uses: aws-actions/aws-cloudformation-github-deploy@v1
241252
with:

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
"pre-push": "npm run test"
3333
}
3434
},
35+
"engines": {
36+
"node": ">=22.0.0"
37+
},
3538
"dependencies": {
3639
"@actions/core": "1.11.1",
3740
"@aws-sdk/client-cloudformation": "3.935.0",

0 commit comments

Comments
 (0)