Skip to content

Commit 6e9181b

Browse files
authored
Merge pull request #90 from mdapi-issues/fix/deps
fix(deps): update dependencies and switch from yarn to npm
2 parents 9001fb9 + cded07f commit 6e9181b

File tree

11 files changed

+10617
-1951
lines changed

11 files changed

+10617
-1951
lines changed

.github/workflows/default.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,27 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 0
1816
- uses: actions/setup-node@v4
1917
with:
2018
node-version-file: .node-version
2119
- name: Install dependencies
2220
run: |
23-
yarn install
24-
yarn global add @salesforce/cli
21+
npm ci
22+
npm install --global @salesforce/cli
2523
- name: Run unit tests
26-
run: yarn test
24+
run: npm run test
2725
- name: Authenticate DevHub and create scratch org
2826
env:
2927
SFDX_AUTH_URL_DEVHUB: ${{ secrets.SFDX_AUTH_URL_DEVHUB }}
3028
run: |
31-
sfdx auth:sfdxurl:store -d -a devhub -f <(echo "${SFDX_AUTH_URL_DEVHUB}")
32-
yarn develop
29+
echo "${SFDX_AUTH_URL_DEVHUB}" | sf org login sfdx-url --alias devhub --set-default-dev-hub --sfdx-url-stdin
30+
npm run develop
3331
- name: Run end-to-end tests
34-
run: yarn test:e2e
32+
run: npm run test:e2e
3533
- name: Delete scratch org
3634
if: always()
3735
run: |
38-
sfdx force:org:delete -p
36+
sf org delete scratch --no-prompt
3937
- name: Release package
4038
run: npx semantic-release
4139
env:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/.nyc_output
44
/dist
55
/lib
6-
/package-lock.json
76
/tmp
87
node_modules/
98
/.sfdx/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
Create a scratch org
1010

1111
```console
12-
sfdx force:org:create -f config/project-scratch-def.json -s
12+
sf org create scratch -f config/project-scratch-def.json --set-default
1313
```
1414

1515
list StandardValueSets using `listMetadata`
1616

1717
```console
18-
sfdx force:mdapi:listmetadata -m StandardValueSet
18+
sf org list metadata --metadata-type StandardValueSet
1919
```
2020

2121
```diff

config/project-scratch-def.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,5 @@
22
"orgName": "ACME",
33
"edition": "Developer",
44
"features": [],
5-
"settings": {
6-
"lightningExperienceSettings": {
7-
"enableS1DesktopEnabled": true
8-
},
9-
"mobileSettings": {
10-
"enableS1EncryptedStoragePref2": false
11-
}
12-
}
5+
"settings": {}
136
}

0 commit comments

Comments
 (0)