-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: only generate lockfiles for jit plugins (#325)
* feat: only generate lockfiles for jit plugins * feat: shrinkwrap everything but core plugins
- Loading branch information
1 parent
c33e941
commit 462e6fa
Showing
6 changed files
with
149 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: update-plugin-list | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Run every Wednesday at 14:00 UTC | ||
- cron: '0 14 * * 3' | ||
|
||
jobs: | ||
update-plugin-list: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
- run: | | ||
npm view @salesforce/cli oclif.plugins --json | jq '[.[] | select(contains("@salesforce"))]' > core-plugins.json | ||
npm view @salesforce/cli oclif.jitPlugins --json | jq keys > jit-plugins.json | ||
- uses: salesforcecli/github-workflows/.github/actions/getGithubUserInfo@main | ||
id: github-user-info | ||
with: | ||
SVC_CLI_BOT_GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} | ||
- uses: salesforcecli/github-workflows/.github/actions/gitConfig@main | ||
with: | ||
username: ${{ steps.github-user-info.outputs.username }} | ||
email: ${{ steps.github-user-info.outputs.email }} | ||
# Push changes if 'git status' is not empty | ||
- run: | | ||
if [[ -n $(git status --short) ]]; then | ||
git add -A | ||
git commit -m "fix: update plugin lists" | ||
git push | ||
else | ||
echo "Already up to date" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
"@salesforce/plugin-apex", | ||
"@salesforce/plugin-auth", | ||
"@salesforce/plugin-data", | ||
"@salesforce/plugin-deploy-retrieve", | ||
"@salesforce/plugin-info", | ||
"@salesforce/plugin-limits", | ||
"@salesforce/plugin-marketplace", | ||
"@salesforce/plugin-org", | ||
"@salesforce/plugin-packaging", | ||
"@salesforce/plugin-schema", | ||
"@salesforce/plugin-settings", | ||
"@salesforce/plugin-sobject", | ||
"@salesforce/plugin-source", | ||
"@salesforce/plugin-telemetry", | ||
"@salesforce/plugin-templates", | ||
"@salesforce/plugin-trust", | ||
"@salesforce/plugin-user" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ | ||
"@salesforce/plugin-custom-metadata", | ||
"@salesforce/plugin-community", | ||
"@salesforce/plugin-dev", | ||
"@salesforce/plugin-devops-center", | ||
"@salesforce/plugin-env", | ||
"@salesforce/plugin-functions", | ||
"@salesforce/plugin-signups", | ||
"@salesforce/sfdx-plugin-lwc-test", | ||
"@salesforce/sfdx-scanner" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters