Skip to content

Commit

Permalink
Use node 20.x for all tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Apr 3, 2024
1 parent 1388c02 commit d90c6d6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
]
},
"parserOptions": {
"ecmaVersion": 2020
"ecmaVersion": 2022
}
}
26 changes: 21 additions & 5 deletions .github/workflows/new-issue.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v0.3
# v0.5
name: New issue

on:
Expand All @@ -13,9 +13,10 @@ jobs:
issues: write
steps:
- name: Setup node
id: setup_node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- name: Get package name
id: get_package_name
uses: ASzc/change-string-case-action@v6
Expand All @@ -25,14 +26,29 @@ jobs:
id: get_npm_version
run: echo "LATEST_VERSION=$(npm view ${{ steps.get_package_name.outputs.lowercase }}@latest version)" >> "$GITHUB_OUTPUT"
- name: Create comment
id: create_comment_ok
if: ${{ contains(github.event.issue.body, steps.get_npm_version.outputs.LATEST_VERSION) }}
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for reporting a new issue @${{ github.actor }}!
1. Please make sure your topic is not covered in the [documentation](https://github.com/${{ github.event.repository.full_name }}/blob/v${{ steps.get_npm_version.outputs.LATEST_VERSION }}/docs/en/README.md)
2. Ensure that you use the latest **beta version** (not the current stable version): **${{ steps.get_npm_version.outputs.LATEST_VERSION }}**
3. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue
4. [Search for the issue topic](https://github.com/${{ github.event.repository.full_name }}/issues?q=is%3Aissue) in other/closed issues to avoid duplicates!
2. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue
3. [Search for the issue topic](https://github.com/${{ github.event.repository.full_name }}/issues?q=is%3Aissue) in other/closed issues to avoid duplicates!
----
*Otherwise this issue will be closed.*
- name: Create comment (beta version)
id: create_comment_version
if: ${{ !contains(github.event.issue.body, steps.get_npm_version.outputs.LATEST_VERSION) }}
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for reporting a new issue @${{ github.actor }}!
1. Please make sure your topic is not covered in the [documentation](https://github.com/${{ github.event.repository.full_name }}/blob/v${{ steps.get_npm_version.outputs.LATEST_VERSION }}/docs/en/README.md)
2. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue
3. [Search for the issue topic](https://github.com/${{ github.event.repository.full_name }}/issues?q=is%3Aissue) in other/closed issues to avoid duplicates!
4. Ensure that you use the latest available **beta version** of this adapter (not the current stable version): **${{ steps.get_npm_version.outputs.LATEST_VERSION }}**
----
*Otherwise this issue will be closed.*
4 changes: 2 additions & 2 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
- uses: ioBroker/testing-action-check@v1
with:
node-version: '18.x'
node-version: '20.x'
lint: true
lint-command: 'npm run lint .'

Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
steps:
- uses: ioBroker/testing-action-deploy@v1
with:
node-version: '18.x'
node-version: '20.x'
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
6 changes: 1 addition & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@
"compilerOptions": {
// do not compile anything, this file is just to configure type checking
"noEmit": true,

// check JS files
"allowJs": true,
"checkJs": true,

"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
// this is necessary for the automatic typing of the adapter config
"resolveJsonModule": true,

// Set this to false if you want to disable the very strict rules (not recommended)
"strict": true,
// Or enable some of those features for more fine-grained control
Expand All @@ -25,8 +22,7 @@
// "noUnusedLocals": true,
// "noUnusedParameters": true,
"useUnknownInCatchVariables": false,

"target": "es2020"
"target": "es2022"
},
"include": [
"**/*.js",
Expand Down

0 comments on commit d90c6d6

Please sign in to comment.