Skip to content

Commit

Permalink
Setting alias for scratch org
Browse files Browse the repository at this point in the history
  • Loading branch information
jamessimone committed Mar 13, 2024
1 parent 9bf2ea3 commit 8eac0b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ jobs:
with:
node-version: "18"

# - name: "Restore node_modules cache"
# id: cache-npm
# uses: actions/cache@v2
# with:
# path: node_modules
# key: npm-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# npm-${{ env.cache-name }}-
# npm-
- name: "Restore node_modules cache"
id: cache-npm
uses: actions/cache@v2
with:
path: node_modules
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-${{ env.cache-name }}-
npm-
- name: "Install NPM"
# if: steps.cache-npm.outputs.cache-hit != 'true'
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

# Authenticate using JWT flow
Expand Down
3 changes: 2 additions & 1 deletion scripts/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ if($scratchOrgAllotment -gt 0) {
try {
Write-Debug "Beginning scratch org creation"
# Create Scratch Org
sf org create scratch --definition-file config/project-scratch-def.json --alias $userAlias --set-default --duration-days
npx sf org create scratch --definition-file config/project-scratch-def.json --alias $userAlias --set-default --duration-days
npx sf config set target-org $userAlias
} catch {
# Do nothing, we'll just try to deploy to the Dev Hub instead
}
Expand Down

0 comments on commit 8eac0b6

Please sign in to comment.