sf-plugin-permission-sets 0.0.0-dev.52 → 0.0.0-dev.55

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.
Files changed (2) hide show
  1. package/README.md +13 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -395,9 +395,11 @@ Two dead-simple workflows: check pull requests to main with no org, then apply o
395
395
  ```yaml
396
396
  # .github/workflows/permissions-check.yml
397
397
  name: permissions-check
398
+
398
399
  on:
399
400
  pull_request:
400
401
  branches: [main]
402
+
401
403
  jobs:
402
404
  check:
403
405
  runs-on: ubuntu-latest
@@ -406,10 +408,13 @@ jobs:
406
408
  - uses: actions/setup-node@v7
407
409
  with:
408
410
  node-version: 20
411
+
409
412
  - name: Install Salesforce CLI
410
413
  run: npm install --global @salesforce/cli
414
+
411
415
  - name: Install the plugin
412
416
  run: sf plugins install sf-plugin-permission-sets
417
+
413
418
  - name: Check the permission files
414
419
  run: sf ps check --file "permissions/*.yml"
415
420
  ```
@@ -419,10 +424,11 @@ jobs:
419
424
  ```yaml
420
425
  # .github/workflows/permissions-apply.yml
421
426
  name: permissions-apply
427
+
422
428
  on:
423
429
  push:
424
430
  branches: [main]
425
- paths: ["permissions/**"]
431
+
426
432
  jobs:
427
433
  apply:
428
434
  runs-on: ubuntu-latest
@@ -431,18 +437,21 @@ jobs:
431
437
  - uses: actions/setup-node@v7
432
438
  with:
433
439
  node-version: 20
440
+
434
441
  - name: Install Salesforce CLI
435
442
  run: npm install --global @salesforce/cli
443
+
436
444
  - name: Install the plugin
437
445
  run: sf plugins install sf-plugin-permission-sets
446
+
438
447
  - name: Log in to the org
439
- run: echo '${{ secrets.SF_AUTH_URL }}' | sf org login sfdx-url --sfdx-url-stdin --alias prod
440
- # --no-prompt so a deletion never blocks on a confirmation in CI.
448
+ run: echo '${{ secrets.SFDX_AUTH_URL }}' | sf org login sfdx-url --sfdx-url-stdin --alias prod
449
+
441
450
  - name: Apply the assignments
442
451
  run: sf ps apply --file "permissions/*.yml" --target-org prod --mode sync --no-prompt
443
452
  ```
444
453
 
445
- 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`.
454
+ 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 `SFDX_AUTH_URL`.
446
455
 
447
456
  Want the diff on the PR before merging? Add a `sf ps plan --file "permissions/*.yml" --target-org prod` step (it needs the same org auth) to the check workflow.
448
457
 
package/package.json CHANGED
@@ -122,5 +122,5 @@
122
122
  "exports": "./lib/index.js",
123
123
  "type": "module",
124
124
  "author": "Isaac Ferreira",
125
- "version": "0.0.0-dev.52"
125
+ "version": "0.0.0-dev.55"
126
126
  }