Updated to NodeJS 20

This commit is contained in:
Sebastian Hartte 2024-06-24 14:20:56 +02:00
parent 995edadc13
commit b58e35f1d2
No known key found for this signature in database
9 changed files with 25 additions and 564 deletions

View file

@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js v16
- name: Set up Node.js v20
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- name: Set up node modules
run: npm ci

View file

@ -192,5 +192,5 @@ outputs:
description: Array of objects, each containing details about the files published for the new version on GitHub, such as file `name`, `id`, and download `url`.
runs:
using: node16
using: node20
main: dist/index.js

View file

@ -398,5 +398,5 @@ outputs:
for the new version on GitHub, such as file `name`, `id`, and download
`url`.
runs:
using: node16
using: node20
main: dist/index.js

View file

@ -1,539 +0,0 @@
# ######################################################################## #
# WARNING: AUTO-GENERATED FILE - DO NOT EDIT! #
# #
# Please be advised that this is an auto-generated file and should NOT be #
# modified. Any changes made to this file WILL BE OVERWRITTEN. #
# #
# To make changes to the contents of this file, please modify the #
# action.template.yml file instead. This will ensure that your changes are #
# properly reflected in the auto-generated file. #
# ######################################################################## #
name: mc-publish
description: Your one-stop GitHub Action for seamless Minecraft project
publication across various platforms.
author: Kir-Antipov
branding:
color: purple
icon: box
types:
input:
name: McPublishInput
description: The input parameters for the action.
output:
name: McPublishOutput
description: The output parameters provided by the action.
groups:
input:
modrinth:
type: ModrinthUploadRequest
description: Options used to publish Minecraft projects to Modrinth.
curseforge:
type: CurseForgeUploadRequest
description: Options used to publish Minecraft projects to CurseForge.
github:
type: GitHubUploadRequest
description: Options used to publish Minecraft projects to GitHub.
output:
modrinth:
type: ModrinthUploadReport
description: Report detailing the status of the project published on Modrinth.
curseforge:
type: CurseForgeUploadReport
description: Report detailing the status of the project published on CurseForge.
github:
type: GitHubUploadReport
description: Report detailing the status of the project published on GitHub.
inputs:
modrinth-id:
type: string
description: The unique identifier of your Modrinth project.
required: false
default: ${undefined}
modrinth-featured:
type: boolean
description: Set to true to feature the version on Modrinth; false otherwise.
required: false
default: ${undefined}
modrinth-unfeature-mode:
type: platforms.modrinth.ModrinthUnfeatureMode
description: Sets the behavior for unfeaturing older Modrinth versions.
default: subset
required: false
modrinth-token:
type: utils.security.SecureString
description: Your Modrinth API token.
required: false
default: ${undefined}
curseforge-id:
type: string
description: The unique identifier of your CurseForge project.
required: false
default: ${undefined}
curseforge-token:
type: utils.security.SecureString
description: Your CurseForge API token.
required: false
default: ${undefined}
github-tag:
type: string
description: The tag name for the release where assets will be uploaded.
required: false
default: ${undefined}
github-generate-changelog:
type: boolean
description: Set to true to generate a changelog automatically for this release;
false otherwise. Ignored if the GitHub Release already exists.
required: false
default: ${undefined}
github-draft:
type: boolean
description: Set to true to create a draft release; false otherwise. Ignored if
the GitHub Release already exists.
required: false
default: ${undefined}
github-prerelease:
type: boolean
description: Set to true to mark the release as a prerelease; false otherwise.
Ignored if the GitHub Release already exists.
required: false
default: ${undefined}
github-commitish:
type: string
description: Defines the commitish value that determines where the Git tag is
created from. Can be any branch or commit SHA. Ignored if the Git tag
already exists.
required: false
default: ${undefined}
github-discussion:
type: string
description: If specified, creates and links a discussion of the specified
**existing** category to the release. Ignored if the GitHub Release
already exists.
required: false
default: ${undefined}
github-token:
type: utils.security.SecureString
description: Your GitHub API token.
required: false
default: ${undefined}
files:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
description: An array of globs determining which files to upload.
default: |
build/libs/!(*-@(dev|sources|javadoc)).jar
build/libs/*-@(dev|sources|javadoc).jar
required: false
files-primary:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
redirect: files
description: A glob determining the primary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
files-secondary:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
redirect: void
description: A glob determining the secondary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
name:
type: string
description: The name of the version.
required: false
default: ${undefined}
version:
type: string
description: The version number.
required: false
default: ${undefined}
version-type:
type: utils.versioning.VersionType
description: The version type - alpha, beta, or release.
required: false
default: ${undefined}
changelog:
type: string
description: The changelog for this version.
required: false
default: ${undefined}
changelog-file:
type: string;utils/io/file-info->{readAllText}
redirect: changelog
description: A glob pointing to the changelog file.
required: false
default: ${undefined}
loaders:
type: string[]?separator=/\s%2B/
description: An array of supported mod loaders.
required: false
default: ${undefined}
game-versions:
type: string[]
description: An array of supported Minecraft versions.
required: false
default: ${undefined}
dependencies:
type: dependencies.Dependency[]
description: An array of dependencies required by your project.
required: false
default: ${undefined}
version-resolver:
type: games.GameVersionFilter:fromVersionResolver
redirect: game-version-filter
description: Controls the method used to automatically resolve game versions.
deprecationMessage: Please, use 'game-version-filter' instead.
required: false
default: ${undefined}
game-version-filter:
type: games.GameVersionFilter
description: Controls the method used to filter game versions.
default: releases
required: false
java:
type: utils.java.JavaVersion[]
description: An array of Java versions compatible with your project.
required: false
default: ${undefined}
retry-attempts:
description: Defines the maximum number of asset publishing attempts.
type: number
default: 2
required: false
retry-delay:
description: Specifies the delay (in milliseconds) between asset publishing attempts.
type: number
default: 10000
required: false
fail-mode:
type: utils.errors.FailMode
description: Controls how the action responds to errors during the mod
publishing process.
default: fail
required: false
modrinth-files:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
description: An array of globs determining which files to upload.
default: ${undefined}
required: false
curseforge-files:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
description: An array of globs determining which files to upload.
default: ${undefined}
required: false
github-files:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
description: An array of globs determining which files to upload.
default: ${undefined}
required: false
modrinth-files-primary:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
redirect: modrinth-files
description: A glob determining the primary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
curseforge-files-primary:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
redirect: curseforge-files
description: A glob determining the primary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
github-files-primary:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
redirect: github-files
description: A glob determining the primary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
modrinth-files-secondary:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
redirect: modrinth-void
description: A glob determining the secondary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
curseforge-files-secondary:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
redirect: curseforge-void
description: A glob determining the secondary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
github-files-secondary:
type: utils.io.FileInfo[]:{findFiles}?processSeparately=false
redirect: github-void
description: A glob determining the secondary files to upload.
deprecationMessage: Please, use 'files' instead.
required: false
default: ${undefined}
modrinth-name:
type: string
description: The name of the version.
required: false
default: ${undefined}
curseforge-name:
type: string
description: The name of the version.
required: false
default: ${undefined}
github-name:
type: string
description: The name of the version.
required: false
default: ${undefined}
modrinth-version:
type: string
description: The version number.
required: false
default: ${undefined}
curseforge-version:
type: string
description: The version number.
required: false
default: ${undefined}
github-version:
type: string
description: The version number.
required: false
default: ${undefined}
modrinth-version-type:
type: utils.versioning.VersionType
description: The version type - alpha, beta, or release.
required: false
default: ${undefined}
curseforge-version-type:
type: utils.versioning.VersionType
description: The version type - alpha, beta, or release.
required: false
default: ${undefined}
github-version-type:
type: utils.versioning.VersionType
description: The version type - alpha, beta, or release.
required: false
default: ${undefined}
modrinth-changelog:
type: string
description: The changelog for this version.
required: false
default: ${undefined}
curseforge-changelog:
type: string
description: The changelog for this version.
required: false
default: ${undefined}
github-changelog:
type: string
description: The changelog for this version.
required: false
default: ${undefined}
modrinth-changelog-file:
type: string;utils/io/file-info->{readAllText}
redirect: modrinth-changelog
description: A glob pointing to the changelog file.
required: false
default: ${undefined}
curseforge-changelog-file:
type: string;utils/io/file-info->{readAllText}
redirect: curseforge-changelog
description: A glob pointing to the changelog file.
required: false
default: ${undefined}
github-changelog-file:
type: string;utils/io/file-info->{readAllText}
redirect: github-changelog
description: A glob pointing to the changelog file.
required: false
default: ${undefined}
modrinth-loaders:
type: string[]?separator=/\s%2B/
description: An array of supported mod loaders.
required: false
default: ${undefined}
curseforge-loaders:
type: string[]?separator=/\s%2B/
description: An array of supported mod loaders.
required: false
default: ${undefined}
github-loaders:
type: string[]?separator=/\s%2B/
description: An array of supported mod loaders.
required: false
default: ${undefined}
modrinth-game-versions:
type: string[]
description: An array of supported Minecraft versions.
required: false
default: ${undefined}
curseforge-game-versions:
type: string[]
description: An array of supported Minecraft versions.
required: false
default: ${undefined}
github-game-versions:
type: string[]
description: An array of supported Minecraft versions.
required: false
default: ${undefined}
modrinth-dependencies:
type: dependencies.Dependency[]
description: An array of dependencies required by your project.
required: false
default: ${undefined}
curseforge-dependencies:
type: dependencies.Dependency[]
description: An array of dependencies required by your project.
required: false
default: ${undefined}
github-dependencies:
type: dependencies.Dependency[]
description: An array of dependencies required by your project.
required: false
default: ${undefined}
modrinth-version-resolver:
type: games.GameVersionFilter:fromVersionResolver
redirect: modrinth-game-version-filter
description: Controls the method used to automatically resolve game versions.
deprecationMessage: Please, use 'game-version-filter' instead.
required: false
default: ${undefined}
curseforge-version-resolver:
type: games.GameVersionFilter:fromVersionResolver
redirect: curseforge-game-version-filter
description: Controls the method used to automatically resolve game versions.
deprecationMessage: Please, use 'game-version-filter' instead.
required: false
default: ${undefined}
github-version-resolver:
type: games.GameVersionFilter:fromVersionResolver
redirect: github-game-version-filter
description: Controls the method used to automatically resolve game versions.
deprecationMessage: Please, use 'game-version-filter' instead.
required: false
default: ${undefined}
modrinth-game-version-filter:
type: games.GameVersionFilter
description: Controls the method used to filter game versions.
default: ${undefined}
required: false
curseforge-game-version-filter:
type: games.GameVersionFilter
description: Controls the method used to filter game versions.
default: ${undefined}
required: false
github-game-version-filter:
type: games.GameVersionFilter
description: Controls the method used to filter game versions.
default: ${undefined}
required: false
modrinth-java:
type: utils.java.JavaVersion[]
description: An array of Java versions compatible with your project.
required: false
default: ${undefined}
curseforge-java:
type: utils.java.JavaVersion[]
description: An array of Java versions compatible with your project.
required: false
default: ${undefined}
github-java:
type: utils.java.JavaVersion[]
description: An array of Java versions compatible with your project.
required: false
default: ${undefined}
modrinth-retry-attempts:
description: Defines the maximum number of asset publishing attempts.
type: number
default: ${undefined}
required: false
curseforge-retry-attempts:
description: Defines the maximum number of asset publishing attempts.
type: number
default: ${undefined}
required: false
github-retry-attempts:
description: Defines the maximum number of asset publishing attempts.
type: number
default: ${undefined}
required: false
modrinth-retry-delay:
description: Specifies the delay (in milliseconds) between asset publishing attempts.
type: number
default: ${undefined}
required: false
curseforge-retry-delay:
description: Specifies the delay (in milliseconds) between asset publishing attempts.
type: number
default: ${undefined}
required: false
github-retry-delay:
description: Specifies the delay (in milliseconds) between asset publishing attempts.
type: number
default: ${undefined}
required: false
modrinth-fail-mode:
type: utils.errors.FailMode
description: Controls how the action responds to errors during the mod
publishing process.
default: ${undefined}
required: false
curseforge-fail-mode:
type: utils.errors.FailMode
description: Controls how the action responds to errors during the mod
publishing process.
default: ${undefined}
required: false
github-fail-mode:
type: utils.errors.FailMode
description: Controls how the action responds to errors during the mod
publishing process.
default: ${undefined}
required: false
outputs:
modrinth-id:
type: string
description: The unique identifier of your Modrinth project.
modrinth-version:
type: string
description: The unique identifier of the version published on Modrinth by this action.
modrinth-url:
type: string
description: The URL directing to the newly published version on Modrinth.
modrinth-files:
type: platforms.UploadedFile[]
description: Array of objects, each containing details about the files published
for the new version on Modrinth, such as file `name`, `id`, and download
`url`.
curseforge-id:
type: number
description: The unique identifier of your CurseForge project.
curseforge-version:
type: number
description: The unique identifier of the version published on CurseForge by
this action.
curseforge-url:
type: string
description: The URL directing to the newly published version on CurseForge.
curseforge-files:
type: platforms.UploadedFile[]
description: Array of objects, each containing details about the files published
for the new version on CurseForge, such as file `name`, `id`, and download
`url`.
github-repo:
type: string
description: The full repository name on GitHub, formatted as 'username/repository'.
github-tag:
type: string
description: The Git tag associated with the new or updated release published on GitHub.
github-url:
type: string
description: The URL directing to the newly published version on GitHub.
github-files:
type: platforms.UploadedFile[]
description: Array of objects, each containing details about the files published
for the new version on GitHub, such as file `name`, `id`, and download
`url`.
runs:
using: node16
main: dist/index.js

8
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/license.txt vendored
View file

@ -77,7 +77,7 @@ braces
MIT
The MIT License (MIT)
Copyright (c) 2014-2018, Jon Schlinkert.
Copyright (c) 2014-present, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

28
package-lock.json generated
View file

@ -3428,11 +3428,11 @@
}
},
"node_modules/braces": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
"dependencies": {
"fill-range": "^7.0.1"
"fill-range": "^7.1.1"
},
"engines": {
"node": ">=8"
@ -4421,9 +4421,9 @@
}
},
"node_modules/fill-range": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
"dependencies": {
"to-regex-range": "^5.0.1"
},
@ -10381,11 +10381,11 @@
}
},
"braces": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
"requires": {
"fill-range": "^7.0.1"
"fill-range": "^7.1.1"
}
},
"browserslist": {
@ -11082,9 +11082,9 @@
}
},
"fill-range": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
"requires": {
"to-regex-range": "^5.0.1"
}

View file

@ -112,7 +112,7 @@ export interface ActionMetadata {
*
* Due to the deprecation of Node12, the available options are quite limited now.
*/
using: "node16";
using: "node20";
/**
* The file that contains your action code.