-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add node dependency auto-update workflow
Automatically updates lockfiles to use latest versions of packages on a schedule.
- Loading branch information
1 parent
d7e851b
commit 93a0ceb
Showing
1 changed file
with
16 additions
and
0 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,16 @@ | ||
# .github/workflows/dependency-auto-update.yml | ||
name: Dependency tree auto-update | ||
on: | ||
schedule: | ||
- cron: '0 11 * * 1,4' # Frequency of your preference, this one runs Mondays and Thursdays at 11am | ||
workflow_dispatch: # Allow running manually | ||
jobs: | ||
update: | ||
uses: tradeshift/actions-workflow-npm/.github/workflows/dependency-tree-update.yml@v1 # Reference to the shared workflow | ||
secrets: | ||
gpg-key: ${{ secrets.TRADESHIFTCI_GPG_KEY }} # The client key to use for commit author and signing | ||
github-token: ${{ secrets.GH_TOKEN }} # Token used to checkout code and create PR. Using a personal access token to have workflows run on the created PR. | ||
npm-token: ${{ secrets.NPM_TOKEN }} # Token used to authenticate to the private GitHub npm registry | ||
with: | ||
path: . # Optional paramater in case your application is not at the root of your, otherwise it defaults to "." | ||
runs-on: ubuntu-latest # Optional paramater to define where to run the workflow, otherwise it defaults to ubuntu-latest. More information at https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on |