sf-plugin-permission-sets 0.0.0-dev.50 → 0.0.0-dev.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -406,9 +406,12 @@ jobs:
|
|
|
406
406
|
- uses: actions/setup-node@v4
|
|
407
407
|
with:
|
|
408
408
|
node-version: 20
|
|
409
|
-
-
|
|
410
|
-
|
|
411
|
-
-
|
|
409
|
+
- name: Install Salesforce CLI
|
|
410
|
+
run: npm install --global @salesforce/cli
|
|
411
|
+
- name: Install the plugin
|
|
412
|
+
run: sf plugins install sf-plugin-permission-sets
|
|
413
|
+
- name: Check the permission files
|
|
414
|
+
run: sf ps check --file "permissions/*.yml"
|
|
412
415
|
```
|
|
413
416
|
|
|
414
417
|
**2. Apply on merge to main** (needs org auth):
|
|
@@ -428,13 +431,17 @@ jobs:
|
|
|
428
431
|
- uses: actions/setup-node@v4
|
|
429
432
|
with:
|
|
430
433
|
node-version: 20
|
|
431
|
-
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
-
|
|
434
|
+
- name: Install Salesforce CLI
|
|
435
|
+
run: npm install --global @salesforce/cli
|
|
436
|
+
- name: Install the plugin
|
|
437
|
+
run: sf plugins install sf-plugin-permission-sets
|
|
438
|
+
- name: Write the auth URL
|
|
439
|
+
run: echo '${{ secrets.SF_AUTH_URL }}' > auth.txt
|
|
440
|
+
- name: Log in to the org
|
|
441
|
+
run: sf org login sfdx-url --sfdx-url-file auth.txt --alias prod
|
|
436
442
|
# --no-prompt so a deletion never blocks on a confirmation in CI.
|
|
437
|
-
-
|
|
443
|
+
- name: Apply the assignments
|
|
444
|
+
run: sf ps apply --file "permissions/*.yml" --target-org prod --mode sync --no-prompt
|
|
438
445
|
```
|
|
439
446
|
|
|
440
447
|
Get the auth URL once with `sf org display --verbose --target-org prod`, copy the `Sfdx Auth Url` value, and save it as a repository secret named `SF_AUTH_URL`.
|
package/package.json
CHANGED