Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIRSHIP-3260 upgrade node version #1

Merged
merged 16 commits into from
Oct 31, 2023
8 changes: 1 addition & 7 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ module.exports = {
env: {
es6: true,
},
extends: [
"plugin:unicorn/recommended",
"xo",
"xo-typescript",
"prettier",
"prettier/@typescript-eslint",
],
extends: ["plugin:unicorn/recommended", "xo", "xo-typescript", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2018,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
jobs:
publish:
name: Publish
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- uses: dylanvann/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Install
run: yarn install --frozen-lockfile
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ outputs:
token:
description: An installation token for the GitHub App on the requested organization.
runs:
using: node12
using: node20
main: dist/index.js
branding:
icon: unlock
Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@
"action.yml",
"dist"
],
"main": "dist/index.js",
"type": "module",
"scripts": {
"build": "ncc build src/index.ts --minify --v8-cache",
"build": "ncc build src/index.ts --minify --target es2021 --v8-cache",
"check-prettier": "yarn run prettier --check",
"eslint": "eslint --ignore-path .gitignore --max-warnings 0 \"./**/*.{js,ts}\"",
"eslint": "eslint --ignore-path .gitignore --max-warnings 0 \"./**/*.{cjs,js,ts}\"",
"format-prettier": "yarn run prettier --write",
"prettier": "prettier --ignore-path .gitignore \"./**/*.{js,json,md,ts,yml}\""
"prettier": "prettier --ignore-path .gitignore \"./**/*.{cjs,js,json,md,ts,yml}\""
},
"devDependencies": {
"@actions/core": "^1.2.6",
"@actions/github": "^4.0.0",
"@octokit/auth-app": "^2.10.5",
"@types/is-base64": "^1.1.0",
"@types/node": "^14.14.14",
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
"@vercel/ncc": "^0.26.1",
"eslint": "^7.16.0",
"eslint-config-prettier": "^7.1.0",
"eslint-config-xo": "^0.33.1",
"eslint-config-xo-typescript": "^0.37.0",
"@types/node": "^20.6.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vercel/ncc": "^0.38.1",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-xo": "^0.43.1",
"eslint-config-xo-typescript": "^1.0.1",
"eslint-import-resolver-typescript": "^2.3.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-sort-destructure-keys": "^1.3.5",
"eslint-plugin-typescript-sort-keys": "^1.5.0",
"eslint-plugin-unicorn": "^24.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-sort-destructure-keys": "^1.5.0",
"eslint-plugin-typescript-sort-keys": "^3.1.0",
"eslint-plugin-unicorn": "^49.0.0",
"is-base64": "^1.1.0",
"prettier": "^2.2.1",
"prettier": "^3.0.3",
"promise-retry": "^2.0.1",
"typescript": "^4.1.3"
"typescript": "^5.2.2"
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { context } from "@actions/github";

import isBase64 from "is-base64";

import { fetchInstallationToken } from "./fetch-installation-token";
import { fetchInstallationToken } from "./fetch-installation-token.js";

const run = async () => {
try {
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"moduleResolution": "node",
"noEmitOnError": true,
"strict": true,
"target": "esnext",
"target": "es2021",
"types": ["node"]
},
"include": [".*.js", "*.js", "src"]
"include": [".*.js", "*.js", "src", "prettier.config.cjs", ".eslintrc.cjs"]
}
Loading