Skip to content

Commit

Permalink
deps: Bump node from 12.22.1 to 14.16.1 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Apr 30, 2021
1 parent 3afd221 commit a7cec91
Show file tree
Hide file tree
Showing 12 changed files with 70 additions and 129 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
jobs:
CodeQL-Build:
runs-on: ubuntu-18.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v2

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dev-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ on:
jobs:
dev-image-test:
runs-on: ubuntu-18.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- name: Login to Packages
run: echo '${{ secrets.GITHUB_TOKEN }}' | docker login 'docker.pkg.github.com' -u 'peaceiris' --password-stdin
- run: docker-compose pull --quiet
if: github.event_name == 'pull_request'
- run: make build
- run: docker images
- run: make ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/model-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
jobs:
python:
runs-on: ubuntu-18.04
timeout-minutes: 2
defaults:
run:
working-directory: models
Expand All @@ -31,15 +32,14 @@ jobs:

fasttext:
runs-on: ubuntu-18.04
timeout-minutes: 5
defaults:
run:
working-directory: models/fasttext
steps:
- uses: actions/checkout@v2
- name: Login to Packages
run: echo '${{ secrets.GITHUB_TOKEN }}' | docker login 'docker.pkg.github.com' -u '${{ github.repository_owner }}' --password-stdin
- run: docker-compose pull --quiet
if: github.event_name == 'pull_request'
- run: make build
- run: docker images
# - run: make fmt
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
release:
runs-on: ubuntu-18.04
timeout-minutes: 2
steps:
- uses: actions/checkout@v2
- uses: peaceiris/workflows/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/suggest-related-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
jobs:
action:
runs-on: ubuntu-18.04
timeout-minutes: 2
steps:
- name: Dump GitHub context
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
jobs:
test:
runs-on: ubuntu-18.04
timeout-minutes: 3
steps:
- uses: actions/checkout@v2

Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/update-major-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ on:

jobs:
update:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2

- name: Update major tag
if: github.event.release.prerelease == false
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
export TAG_NAME="${GITHUB_REF##refs/tags/}"
export TAG_MAJOR="${TAG_NAME%%.*}"
git tag --force -a "${TAG_MAJOR}" -m "Release ${TAG_NAME}"
git push --force origin "${TAG_MAJOR}"
- name: Update major tag
if: github.event.release.prerelease == false
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
export TAG_NAME="${GITHUB_REF##refs/tags/}"
export TAG_MAJOR="${TAG_NAME%%.*}"
git tag --force -a "${TAG_MAJOR}" -m "Release ${TAG_NAME}"
git push --force origin "${TAG_MAJOR}"
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.22.1
14.16.1
3 changes: 2 additions & 1 deletion models/fasttext/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ version: '3'

services:
dev:
image: docker.pkg.github.com/peaceiris/actions-suggest-related-links/asrl-fasttext:latest
build:
context: .
container_name: asrl_fasttext
volumes:
- ${PWD}:/src
Expand Down
44 changes: 15 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,23 @@
"name": "actions-suggest-related-links",
"version": "1.1.3",
"description": "A GitHub Action to suggest related or similar issues, documents, and links. Based on the power of NLP and fastText.",
"main": "actions/dist/index.js",
"engines": {
"node": ">=12.18.3",
"npm": ">=6.14.8"
"keywords": [
"GitHub Actions",
"Actions",
"JavaScript Action",
"TypeScript Action"
],
"homepage": "https://github.com/peaceiris/actions-suggest-related-links#readme",
"bugs": {
"url": "https://github.com/peaceiris/actions-suggest-related-links/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/peaceiris/actions-suggest-related-links.git"
},
"license": "MIT",
"author": "peaceiris",
"main": "actions/dist/index.js",
"scripts": {
"postinstall": "npx husky install",
"node": "ts-node",
Expand All @@ -29,22 +41,6 @@
"npx [email protected] --github"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/peaceiris/actions-suggest-related-links.git"
},
"keywords": [
"GitHub Actions",
"Actions",
"JavaScript Action",
"TypeScript Action"
],
"author": "peaceiris",
"license": "MIT",
"bugs": {
"url": "https://github.com/peaceiris/actions-suggest-related-links/issues"
},
"homepage": "https://github.com/peaceiris/actions-suggest-related-links#readme",
"dependencies": {
"@actions/artifact": "^0.5.1",
"@actions/core": "^1.2.7",
Expand All @@ -57,7 +53,7 @@
"devDependencies": {
"@types/jest": "^26.0.20",
"@types/js-yaml": "^4.0.0",
"@types/node": "~12",
"@types/node": "~14",
"@typescript-eslint/eslint-plugin": "^4.15.0",
"@typescript-eslint/parser": "^4.15.0",
"@vercel/ncc": "^0.27.0",
Expand All @@ -75,5 +71,9 @@
"ts-jest": "^26.5.1",
"ts-node": "^9.1.1",
"typescript": "^4.1.4"
},
"engines": {
"node": ">=14.16.1",
"npm": ">=7.11.1"
}
}
71 changes: 11 additions & 60 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,16 @@
{
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "./actions/dist", /* Redirect output structure to the directory. */
"rootDir": "./actions", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
"removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */

/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */

/* Source Map Options */
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */

/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */

"resolveJsonModule": true
"target": "es2019", // TODO: es2020 https://github.com/actions/runner/issues/772
"module": "commonjs",
"sourceMap": true,
"outDir": "./actions/dist",
"rootDir": "./actions",
"removeComments": true,
"strict": true,
"noImplicitAny": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"skipLibCheck": true
},
"exclude": ["node_modules", "**/*.test.ts"]
}

0 comments on commit a7cec91

Please sign in to comment.