Skip to content

Commit

Permalink
Update dependencies (#93)
Browse files Browse the repository at this point in the history
- Update dependencies
- Upgrade from node 15 to 20
  • Loading branch information
dobladov authored Feb 14, 2024
1 parent b137e69 commit 4725067
Show file tree
Hide file tree
Showing 8 changed files with 400 additions and 340 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
name: Units
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '15.11.0'
node-version-file: '.nvmrc'
cache: npm
- run: npm ci
- run: npm test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.1.0
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

- Update dependencies
- Upgrade from node '15' to '20'

## [2.1.0] - 22.12.2021

Added push events support
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
outputs:
projects: ${{steps.recognition.outputs.projects}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- id: recognition
uses: zattoo/recognition@v2
with:
Expand Down
693 changes: 362 additions & 331 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "GitHub Action to recognize affected projects.",
"main": "src/index.js",
"scripts": {
"test": "eslint .",
"test": "eslint . && tsc",
"build": "ncc build src/index.js -o dist --source-map --license licenses.txt",
"all": "npm test && npm run build"
},
Expand All @@ -23,11 +23,13 @@
},
"homepage": "https://github.com/zattoo/recognition#readme",
"dependencies": {
"@actions/core": "1.10.0",
"@actions/github": "5.1.1",
"@vercel/ncc": "0.36.1"
"@actions/core": "1.10.1",
"@actions/github": "6.0.0",
"@vercel/ncc": "0.38.1"
},
"devDependencies": {
"eslint": "8.45.0"
"@types/node": "20.11.17",
"eslint": "8.56.0",
"typescript": "5.3.3"
}
}
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const github = require('@actions/github');
* @return {string[]}
*/
const getOutput = (changes, domains) => {
/** @type {string[]} */
let result = [];

Object.entries(domains).forEach(([subject, paths]) => {
Expand Down Expand Up @@ -45,6 +46,7 @@ const getOutput = (changes, domains) => {
head: github.context.payload.after,
});

// @ts-expect-error The data can be undefined
files = response.data.files;

break;
Expand Down
19 changes: 19 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "ESNext",
"lib": ["ESNext"],
"module": "NodeNext",
"baseUrl": "./src",
"types": [
"node",
],
"allowJs": true,
"checkJs": true,
"noEmit": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
},
"include": ["src/**/*",],
}

0 comments on commit 4725067

Please sign in to comment.