Skip to content

Commit be34d94

Browse files
authored
CHANGE @W-18681478@ Release branch creation action includes package-lock.json (#1830)
1 parent df8bd0a commit be34d94

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/create-release-branch.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ jobs:
6969
MESSAGE="Preparing for v$NEW_VERSION release."
7070
# GraphQL needs the latest versions of the files we changed, as Base64 encoded strings.
7171
NEW_PACKAGE="$(cat package.json | base64)"
72+
NEW_PACKAGE_LOCK="$(cat package-lock.json | base64)"
7273
gh api graphql -F message="$MESSAGE" -F oldOid=`git rev-parse HEAD` -F branch="$BRANCH" \
7374
-F newPackage="$NEW_PACKAGE" \
75+
-F newPackageLock="$NEW_PACKAGE_LOCK" \
7476
-f query='
75-
mutation ($message: String!, $oldOid: GitObjectID!, $branch: String!, $newPackage: Base64String!) {
77+
mutation ($message: String!, $oldOid: GitObjectID!, $branch: String!, $newPackage: Base64String!, $newPackageLock: Base64String!) {
7678
createCommitOnBranch(input: {
7779
branch: {
7880
repositoryNameWithOwner: "forcedotcom/code-analyzer",
@@ -86,6 +88,10 @@ jobs:
8688
{
8789
path: "package.json",
8890
contents: $newPackage
91+
},
92+
{
93+
path: "package-lock.json",
94+
contents: $newPackageLock
8995
}
9096
]
9197
},

0 commit comments

Comments
 (0)