@@ -31,6 +31,7 @@ import kotlin.collections.toTypedArray
3131 * @param useRollingCache Option to enable restoring a cache that doesn't exactly match the
3232 * lockfile, and expire once a month to keep it from only growing larger
3333 * @param installCommand Custom install command to use
34+ * @param cacheKeyPrefix Prefix the cache name with this string
3435 * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
3536 * the binding
3637 * @param _customVersion Allows overriding action's version, for example to use a specific minor
@@ -54,6 +55,10 @@ public data class NpmInstallV1 private constructor(
5455 * Custom install command to use
5556 */
5657 public val installCommand : String? = null ,
58+ /* *
59+ * Prefix the cache name with this string
60+ */
61+ public val cacheKeyPrefix : String? = null ,
5762 /* *
5863 * Type-unsafe map where you can put any inputs that are not yet supported by the binding
5964 */
@@ -70,11 +75,13 @@ public data class NpmInstallV1 private constructor(
7075 useLockFile: Boolean? = null ,
7176 useRollingCache: Boolean? = null ,
7277 installCommand: String? = null ,
78+ cacheKeyPrefix: String? = null ,
7379 _customInputs : Map <String , String > = mapOf (),
7480 _customVersion : String? = null ,
7581 ) : this (workingDirectory= workingDirectory, useLockFile= useLockFile,
7682 useRollingCache= useRollingCache, installCommand= installCommand,
77- _customInputs = _customInputs , _customVersion = _customVersion )
83+ cacheKeyPrefix= cacheKeyPrefix, _customInputs = _customInputs ,
84+ _customVersion = _customVersion )
7885
7986 @Suppress(" SpreadOperator" )
8087 override fun toYamlArguments (): LinkedHashMap <String , String > = linkedMapOf(
@@ -83,6 +90,7 @@ public data class NpmInstallV1 private constructor(
8390 useLockFile?.let { " useLockFile" to it.toString() },
8491 useRollingCache?.let { " useRollingCache" to it.toString() },
8592 installCommand?.let { " install-command" to it },
93+ cacheKeyPrefix?.let { " cache-key-prefix" to it },
8694 * _customInputs .toList().toTypedArray(),
8795 ).toTypedArray()
8896 )
0 commit comments