Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules/
package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ updates:
directory: "/"
schedule:
interval: "weekly"
cooldown:
# update-package-lock workflow handles minor/patch updates - delay for a few weeks to give time to handle breaking change in those PRs
default-days: 25
semver-major-days: 5
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Update package-lock.json
on:
schedule:
- cron: "30 12 * * 1-5" # Mon-Fri 8:30AM EDT. 7:30AM EST.
workflow_dispatch: # manual trigger
jobs:
update:
name: Update
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
with:
token: ${{ secrets.PR_GITHUB_TOKEN }}
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Update package-lock.json
uses: BrightspaceUI/actions/update-package-lock@main
with:
AUTO_MERGE_METHOD: squash
# update-package-lock set up instructions: https://github.com/BrightspaceUI/create/tree/main?tab=readme-ov-file#additional-setup
AUTO_MERGE_TOKEN: ${{ secrets.PR_GITHUB_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a little blurb here linking to the action, where it talks about setting up this token?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea -- done.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I meant on the README with the others but that works too!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're probably more likely to see it in the code than going back to check the create repo's README

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see, right. The stuff in the README is under "Optional" which technically this isn't. I think I'll just leave it here!

APPROVAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PR_GITHUB_TOKEN }}
SLACK_CHANNEL_FAILURE: '#your-team-dev-alerts'
SLACK_CHANNEL_STALE_PR: '#your-team-dev-alerts'
SLACK_TOKEN: ${{ secrets.D2L_SLACK_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install dependencies
run: npm install
run: npm ci
- name: Lint (JavaScript)
run: npm run lint:eslint
- name: Lint (CSS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ jobs:
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install dependencies
run: npm install
run: npm ci
- name: Lint (JavaScript)
run: npm run lint:eslint
- name: Lint (CSS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ jobs:
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install Dependencies
run: npm install
run: npm ci
- name: vdiff Tests
uses: BrightspaceUI/actions/vdiff@main
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ jobs:
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install Dependencies
run: npm install
run: npm ci
- name: vdiff Tests
uses: BrightspaceUI/actions/vdiff@main
with:
Expand Down