Skip to content

Commit

Permalink
Updates pipeline to SF CLI syntax (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamessimone authored Mar 13, 2024
1 parent b8dc989 commit 5a4501a
Show file tree
Hide file tree
Showing 6 changed files with 15,044 additions and 21,026 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ jobs:
steps:
# Checkout the code
- name: "Checkout source code"
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: "Setup node"
uses: actions/setup-node@v2
with:
node-version: "14"
node-version: "18"

- name: "Restore node_modules cache"
id: cache-npm
Expand All @@ -58,8 +58,8 @@ jobs:
shell: bash
run: |
echo "${{ env.DEVHUB_SERVER_KEY }}" > ./jwt-server.key
npx sfdx force:auth:jwt:grant --clientid ${{ env.DEVHUB_CONSUMER_KEY }} --username ${{ env.DEVHUB_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
npx sfdx config:set defaultusername=${{ env.DEVHUB_USERNAME }}
npx sf org login jwt --client-id ${{ env.DEVHUB_CONSUMER_KEY }} --username ${{ env.DEVHUB_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub
npx sf config set target-org ${{ env.DEVHUB_USERNAME }}
env:
DEVHUB_USERNAME: ${{ secrets.DEVHUB_USERNAME }}
DEVHUB_CONSUMER_KEY: ${{ secrets.DEVHUB_CONSUMER_KEY }}
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org/
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.sfdx
sfdx-project.json
sfdx-project.json
package-lock.json
Loading

0 comments on commit 5a4501a

Please sign in to comment.