Skip to content

Commit

Permalink
feat: Update actions runtime from NodeJS 16 to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs committed May 5, 2024
1 parent 07a1d4d commit c192165
Show file tree
Hide file tree
Showing 21 changed files with 2,289 additions and 2,505 deletions.
36 changes: 0 additions & 36 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/awscli.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: ./iam_access_credentials
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cloudfront_invalidate.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: ./iam_access_credentials
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iam_access_credentials.yaml
Expand Up @@ -18,7 +18,7 @@ jobs:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: ./iam_access_credentials
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/s3_sync.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: ./iam_access_credentials
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale-actions.yaml
Expand Up @@ -7,7 +7,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Staling issues and PR's
Expand Down
9 changes: 0 additions & 9 deletions .prettierrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion awscli/action.yml
Expand Up @@ -47,5 +47,5 @@ outputs:
description: 'Output returned from awscli command'

runs:
using: node16
using: node20
main: dist/index.js
4 changes: 3 additions & 1 deletion awscli/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cloudfront_invalidate/action.yml
Expand Up @@ -25,5 +25,5 @@ outputs:
description: 'The identifier for the invalidation request'

runs:
using: node16
using: node20
main: dist/index.js
19 changes: 3 additions & 16 deletions cloudfront_invalidate/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cloudfront_invalidate/package.json
Expand Up @@ -10,6 +10,6 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@aws-sdk/client-cloudfront": "^3.350.0"
"@aws-sdk/client-cloudfront": "^3.569.0"
}
}
12 changes: 12 additions & 0 deletions eslint.config.mjs
@@ -0,0 +1,12 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
// config with just ignores is the replacement for `.eslintignore`
ignores: ['**/dist/**', '**/*.js'],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
);
2 changes: 1 addition & 1 deletion iam_access_credentials/action.yml
Expand Up @@ -51,5 +51,5 @@ outputs:
description: 'The AWS account ID for the provided credentials'

runs:
using: node16
using: node20
main: dist/index.js
19 changes: 3 additions & 16 deletions iam_access_credentials/dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions iam_access_credentials/package.json
Expand Up @@ -10,9 +10,9 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@aws-sdk/client-sts": "^3.350.0"
"@aws-sdk/client-sts": "^3.569.0"
},
"devDependencies": {
"@types/uuid": "^9.0.2"
"@types/uuid": "^9.0.8"
}
}
37 changes: 14 additions & 23 deletions package.json
Expand Up @@ -28,21 +28,14 @@
"s3_sync"
],
"scripts": {
"all": "yarn format && yarn lint && yarn build",
"all": "yarn lint && yarn build",
"build": "lerna run build && lerna run compile",
"format": "prettier --write '**/*.ts' .eslintrc.js",
"lint": "eslint --ext .ts --quiet --fix",
"lint": "eslint . --fix",
"release": "lerna version --conventional-commits --create-release github"
},
"lint-staged": {
"*.(js|ts)": [
"eslint --fix"
],
"*.md": [
"prettier --single-quote --write"
],
"*package.json": [
"prettier --write --plugin=prettier-plugin-package"
]
},
"config": {
Expand All @@ -51,24 +44,22 @@
}
},
"dependencies": {
"@actions/core": "^1.10.0"
"@actions/core": "^1.10.1"
},
"devDependencies": {
"@types/node": "^20.3.1",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"@vercel/ncc": "^0.36.1",
"@eslint/js": "^9.2.0",
"@types/node": "^20.12.8",
"@vercel/ncc": "^0.38.1",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"lerna": "^7.0.1",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"prettier-plugin-package": "^1.3.0",
"typescript": "^5.1.3"
"eslint": "^9.2.0",
"lerna": "^8.1.2",
"lint-staged": "^15.2.2",
"typescript": "^5.4.5",
"typescript-eslint": "^7.8.0"
},
"resolutions": {
"tar": ">=6.2.1"
},
"command": {
"version": {
Expand Down
2 changes: 1 addition & 1 deletion s3_sync/action.yml
Expand Up @@ -23,5 +23,5 @@ inputs:
default: ''

runs:
using: node16
using: node20
main: dist/index.js
4 changes: 3 additions & 1 deletion s3_sync/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tsconfig.json
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2018",
"target": "esnext",
"moduleResolution": "node",
"skipLibCheck": true,
"removeComments": false,
Expand Down

0 comments on commit c192165

Please sign in to comment.