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 1ce4189 commit 1728197
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prefer-const": "error"
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaVersion": 2022,
"ecmaFeatures": {
"jsx": true
}
Expand Down
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 @@ -61,7 +61,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
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// "noUnusedLocals": true,
// "noUnusedParameters": true,
"useUnknownInCatchVariables": false,
"target": "es2020",
"target": "es2022",
},
"include": [
"**/*.js",
Expand Down

0 comments on commit 1728197

Please sign in to comment.