Sim Greenbaum
10/18/2023, 8:24 PMsuitecloud file:upload -i ` the problem with this is it would skip our central version control Github CI/CD we would like to implement all new changes submitted to GitHub and then kick off a GitHub action is this something doable?erictgrubaugh
10/18/2023, 8:30 PMsuitecloud is an npm package like any other that you can install in your GH Actions Workflow. I wrote a free course on doing so, though I don't use file:upload specifically.creece
10/19/2023, 12:57 AMSim Greenbaum
10/19/2023, 7:37 PMSim Greenbaum
10/19/2023, 7:38 PMnpm ERR! The `npm ci` command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm ERR! later to generate a package-lock.json file, then try again.erictgrubaugh
10/19/2023, 7:41 PMnpm install locally, which will generate a package-lock.json file, and then commit the package-lock.json file to your repo. Then npm ci will use that to pull in dependencies with fixed versions.erictgrubaugh
10/19/2023, 7:41 PMpackage-lock, you just run another npm install or npm update locally and commit the changes to package-lockerictgrubaugh
10/19/2023, 7:42 PMSim Greenbaum
10/19/2023, 7:48 PMSim Greenbaum
10/19/2023, 7:54 PMerictgrubaugh
10/19/2023, 7:54 PMerictgrubaugh
10/19/2023, 7:58 PMpackage-lock.json exists in the repo on the branch where you are trying to run npm ci and npm is greater than version 5 (current is 10), you shouldn't see that error.Sim Greenbaum
10/19/2023, 8:08 PMnpm ci --acceptsuitecloudsdklicensealien4u
10/21/2023, 5:22 PMerictgrubaugh
10/21/2023, 5:42 PMerictgrubaugh
10/21/2023, 5:42 PMalien4u
10/21/2023, 6:07 PMerictgrubaugh
10/21/2023, 7:10 PMmain as a Release Candidate and deploys that to a sandbox. We then have all of Monday and Tuesday to validate the Release Candidate in said sandbox. Tuesday mornings before working hours, CircleCI automatically kicks of the Production build (lint, validate, unit test) from the most recent Release Candidate tag; assuming all of that passes, the CircleCI Workflow holds for manual approval. Once our Change Control doc is signed and approved, our on-call engineer logs in to CircleCI and approves the hold, and deployment proceeds automatically from there.erictgrubaugh
10/21/2023, 7:14 PMalien4u
10/21/2023, 9:01 PMerictgrubaugh
10/21/2023, 9:44 PMSim Greenbaum
10/25/2023, 4:18 PMerictgrubaugh
10/25/2023, 4:57 PMsuitecloud account:setup or suitecloud account:savetoken command to select the account. There's a ton of different ways you might approach that in a CICD environment, so it's hard to give specifics without a ton of contextSim Greenbaum
10/25/2023, 8:33 PMSim Greenbaum
10/25/2023, 8:34 PMsuitecloud project:deployerictgrubaugh
10/25/2023, 8:39 PMsuitecloud account:setupSim Greenbaum
10/25/2023, 8:42 PMerictgrubaugh
10/25/2023, 8:42 PMerictgrubaugh
10/25/2023, 8:48 PMscas a long time ago and don't even think about it anymore; it's muscle memory for me to scas; scd to select an account and deployerictgrubaugh
10/25/2023, 8:49 PMSim Greenbaum
10/25/2023, 8:50 PMerictgrubaugh
10/25/2023, 8:51 PM# suitecloud aliases
alias sc='suitecloud'
alias scd='sc project:deploy'
alias scv='sc project:validate --server'
alias scas='sc account:setup'Sim Greenbaum
10/25/2023, 8:54 PMfunction createNS() {
suitecloud project:create -i
cd $1
suitecloud account:setup
suitecloud file:import -i
suitecloud object:import -i
suitecloud project:adddependencies
suitecloud project:validate
}erictgrubaugh
10/25/2023, 8:56 PMSim Greenbaum
10/25/2023, 8:59 PM