Skip to content

Commit 13f52da

Browse files
feat(actions): update bahmutov/npm-install@v1 (#1276)
Created automatically. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6251faf commit 13f52da

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1a235c31658a322a3b024444759650ee6345c26d
1+
99e7d72acd9378098c7711648f4cf09b29270ec1

github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/bahmutov/NpmInstallV1.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)