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

Bump to node v20 #47

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Use the official Node.js image as a parent image
#FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18
FROM mcr.microsoft.com/devcontainers/typescript-node:18
FROM mcr.microsoft.com/devcontainers/typescript-node:20

# Add a label to name your image
LABEL name="relabeler-dev"
Expand All @@ -9,7 +8,7 @@ LABEL name="relabeler-dev"
# Debian version should be the same as the base image.
ENV DEBIAN_VERSION=12
ENV DOTNET_SDK_VERSION=8.0
ENV NODE_VERSION=18
ENV NODE_VERSION=20

# Install additional OS packages and .NET SDK
# hadolint ignore=DL3008
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18.x"
node-version: "20.x"

# Install dependencies
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
if: success()
uses: actions/setup-node@v4
with:
node-version: "18.x"
node-version: "20.x"

- name: Install dependencies
if: success()
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

A GitHub Action that labels issues and pull requests on events.

## Requirements

- Node.js v20 or higher

## Usage

To use this action, create a workflow file (e.g., `.github/workflows/relabeler.yml`) in your repository with the following content:
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "relabeler"
description: "A GitHub Action that is able to label issues and pull requests on events."
runs:
using: "node16"
using: "node20"
main: "dist/index.js"
inputs:
who-to-greet:
Expand Down
3 changes: 2 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This is the Azure Pipelines configuration for the relabeler project. IT IS NOT ACTIVATED.
trigger:
branches:
include:
Expand All @@ -16,7 +17,7 @@ pool:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.x"
versionSpec: "20.x"
displayName: "Install Node.js"

- script: |
Expand Down
4 changes: 2 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export default [
languageOptions: {
globals: {
...globals.node,
...globals.es2020
...globals.es2022
},
parser: ts_eslint.parser,
parserOptions: {
ecmaVersion: 2020,
ecmaVersion: 2022,
sourceType: 'module'
},
},
Expand Down
3 changes: 3 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,8 @@
"reportTestSuiteErrors": "true",
"includeConsoleOutput": "true",
"ancestorSeparator": " :: "
},
"engines": {
"node": ">=20.0.0"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */
"target": "ES2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"target": "ES2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "jsx": "preserve", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
Expand Down