Skip to content

Commit 7812a00

Browse files
authored
Modernize action: upgrade to Node 24, migrate to pnpm, update all dep… (#4)
…endencies - Upgrade runtime from node20 to node24 - Migrate from npm to pnpm as package manager - Upgrade TypeScript 4.8 -> 5.x, Jest 27 -> 29, Prettier 2 -> 3, ESLint plugins - Upgrade CI workflow actions to latest (checkout@v6, setup-node@v6, action-setup@v5) - Use node-version-file in CI to read from .tool-versions - Remove unused dependencies (yargs, @types/semver) - Remove dead code (src/git.ts, unused Stage enum entry) - Fix DeployerVerison typo -> DeployerVersion - Update license year to 2019-2026
1 parent db8cb3f commit 7812a00

18 files changed

Lines changed: 4071 additions & 17515 deletions

.github/workflows/test.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: 'Test'
1+
name: "Test"
22

33
on:
44
push:
55
branches:
66
- main
77
- master
8-
8+
99
pull_request:
1010

1111
jobs:
@@ -14,21 +14,27 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
18+
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v5
21+
with:
22+
version: 10.23.0
1823

19-
- name: Setup Node.js 20.x
20-
uses: actions/setup-node@v4
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v6
2126
with:
22-
node-version: '20.x'
27+
node-version-file: ".tool-versions"
28+
cache: "pnpm"
2329

2430
- name: Install
25-
run: npm clean-install
31+
run: pnpm install --frozen-lockfile
2632

2733
- name: Verify
2834
run: |
29-
npm run build
30-
# Fail if "npm run build" generated new changes in dist
35+
pnpm run build
36+
# Fail if "pnpm run build" generated new changes in dist
3137
git update-index --refresh dist/* && git diff-index --quiet HEAD dist
3238
3339
- name: Test
34-
run: npm test
40+
run: pnpm test

.github/workflows/update_major_tag.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Update Major Tag
33
on:
44
release:
55
types: [released]
6-
6+
77
workflow_dispatch:
88

99
permissions:
@@ -14,14 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 5
1616
steps:
17-
1817
- name: Check Tag
1918
if: ${{ !startsWith(github.ref_name, 'v') }}
2019
run: |
2120
echo "Tag must start with v in order to update the major"
2221
exit 1
2322
24-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v6
2524

2625
- name: Update Tag
2726
run: |

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ lib
44
logs
55
*.log
66
npm-debug.log*
7-
yarn-debug.log*
8-
yarn-error.log*
97
lerna-debug.log*
108
coverage
119
.vscode
1210
.env
1311
.env.*
14-
.yarn-integrity

.tool-versions

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
nodejs 20.9.0
1+
nodejs 24.11.1
2+
pnpm 10.23.0

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-2022 Cloud87, LLC.
3+
Copyright (c) 2019-2026 Cloud87, LLC.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

action.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
2-
name: 'ECSDeployer Action'
3-
description: 'GitHub Action for ECSDeployer, a tool to easily deploy applications to AWS ECS Fargate'
4-
author: 'ECSDeployer'
2+
name: "ECSDeployer Action"
3+
description: "GitHub Action for ECSDeployer, a tool to easily deploy applications to AWS ECS Fargate"
4+
author: "ECSDeployer"
55
branding:
6-
color: 'blue'
7-
icon: 'cloud'
6+
color: "blue"
7+
icon: "cloud"
88

99
inputs:
1010
ecsdeployer-version:
11-
description: 'The version of ECSDeployer to run using'
12-
default: 'latest'
11+
description: "The version of ECSDeployer to run using"
12+
default: "latest"
1313
required: false
1414
image:
1515
description: "Value for --image"
@@ -21,24 +21,24 @@ inputs:
2121
description: "Value for --app-version"
2222
required: false
2323
extra-args:
24-
description: 'Additional arguments to pass to the deployer command'
24+
description: "Additional arguments to pass to the deployer command"
2525
required: false
2626
config:
27-
description: 'Deployment YML file for the project'
27+
description: "Deployment YML file for the project"
2828
required: false
2929
workdir:
30-
description: 'Working directory (below repository root)'
31-
default: '.'
30+
description: "Working directory (below repository root)"
31+
default: "."
3232
required: false
3333
timeout:
34-
description: 'Override the default timeout'
35-
default: '90m'
34+
description: "Override the default timeout"
35+
default: "90m"
3636
required: false
3737
install-only:
38-
description: 'Just install ECSDeployer'
39-
default: 'false'
38+
description: "Just install ECSDeployer"
39+
default: "false"
4040
required: false
4141

4242
runs:
43-
using: 'node20'
44-
main: 'dist/index.js'
43+
using: "node24"
44+
main: "dist/index.js"

0 commit comments

Comments
 (0)