6060 - uses : actions/setup-node@v4
6161 with :
6262 node-version : ' lts/*' # Always use Node LTS for building dependencies.
63- - run : yarn install --frozen-lockfile
63+ - run : npm ci
6464 # Increment the version as desired locally, without actually committing anything.
6565 - name : Locally increment version
6666 run : |
8585 # Immediately push the interim branch with no changes, so GraphQL can push to it later.
8686 git push --set-upstream origin $INTERIM_BRANCH_NAME
8787 # Update our dependencies
88- - run : yarn upgrade
88+ - run : npm update
8989 # Use the GraphQL API to create a signed commmit with our changes.
9090 - run : |
9191 # GraphQL needs to know what branch to push to.
@@ -95,11 +95,11 @@ jobs:
9595 MESSAGE="Preparing for v$NEW_VERSION release."
9696 # GraphQL needs the latest versions of the files we changed, as Base64 encoded strings.
9797 NEW_PACKAGE="$(cat package.json | base64)"
98- NEW_YARN_LOCK ="$(cat yarn. lock | base64)"
98+ NEW_LOCKFILE ="$(cat package- lock.json | base64)"
9999 gh api graphql -F message="$MESSAGE" -F oldOid=`git rev-parse HEAD` -F branch="$BRANCH" \
100- -F newPackage="$NEW_PACKAGE" -F newYarnLock ="$NEW_YARN_LOCK " \
100+ -F newPackage="$NEW_PACKAGE" -F newLockfile ="$NEW_LOCKFILE " \
101101 -f query='
102- mutation ($message: String!, $oldOid: GitObjectID!, $branch: String!, $newPackage: Base64String!, $newYarnLock : Base64String!) {
102+ mutation ($message: String!, $oldOid: GitObjectID!, $branch: String!, $newPackage: Base64String!, $newLockfile : Base64String!) {
103103 createCommitOnBranch(input: {
104104 branch: {
105105 repositoryNameWithOwner: "forcedotcom/sfdx-code-analyzer-vscode",
@@ -114,8 +114,8 @@ jobs:
114114 path: "package.json",
115115 contents: $newPackage
116116 }, {
117- path: "yarn. lock",
118- contents: $newYarnLock
117+ path: "package- lock.json ",
118+ contents: $newLockfile
119119 }
120120 ]
121121 },
0 commit comments