@@ -30,36 +30,36 @@ jobs:
30
30
steps :
31
31
# Checkout the code
32
32
- name : " Checkout source code"
33
- uses : actions/checkout@v2
33
+ uses : actions/checkout@v4
34
34
with :
35
35
ref : ${{ github.head_ref }}
36
36
37
37
- name : " Setup node"
38
38
uses : actions/setup-node@v2
39
39
with :
40
- node-version : " 14 "
40
+ node-version : " 18 "
41
41
42
- - name : " Restore node_modules cache"
43
- id : cache-npm
44
- uses : actions/cache@v2
45
- with :
46
- path : node_modules
47
- key : npm-${{ hashFiles('**/package-lock.json') }}
48
- restore-keys : |
49
- npm-${{ env.cache-name }}-
50
- npm-
42
+ # - name: "Restore node_modules cache"
43
+ # id: cache-npm
44
+ # uses: actions/cache@v2
45
+ # with:
46
+ # path: node_modules
47
+ # key: npm-${{ hashFiles('**/package-lock.json') }}
48
+ # restore-keys: |
49
+ # npm-${{ env.cache-name }}-
50
+ # npm-
51
51
52
52
- name : " Install NPM"
53
- if : steps.cache-npm.outputs.cache-hit != 'true'
53
+ # if: steps.cache-npm.outputs.cache-hit != 'true'
54
54
run : npm ci
55
55
56
56
# Authenticate using JWT flow
57
57
- name : " Auth to dev hub"
58
58
shell : bash
59
59
run : |
60
60
echo "${{ env.DEVHUB_SERVER_KEY }}" > ./jwt-server.key
61
- npx sfdx force:auth: jwt:grant --clientid ${{ env.DEVHUB_CONSUMER_KEY }} --username ${{ env.DEVHUB_USERNAME }} --jwtkeyfile ./jwt-server.key --setdefaultdevhubusername
62
- npx sfdx config: set defaultusername= ${{ env.DEVHUB_USERNAME }}
61
+ 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
62
+ npx sf config set target-org ${{ env.DEVHUB_USERNAME }}
63
63
env :
64
64
DEVHUB_USERNAME : ${{ secrets.DEVHUB_USERNAME }}
65
65
DEVHUB_CONSUMER_KEY : ${{ secrets.DEVHUB_CONSUMER_KEY }}
0 commit comments