From 74a9f7c96d9bdcb9b15a6c7af016754b9a7c3409 Mon Sep 17 00:00:00 2001 From: Dave Lockhart Date: Fri, 6 Mar 2026 16:18:58 -0500 Subject: [PATCH] GAUD-9566: upgrade repo --- .eslintrc.json | 3 - .github/CODEOWNERS | 2 + .github/dependabot.yml | 10 + .github/workflows/ci.yml | 3 +- .github/workflows/release.yml | 1 + .github/workflows/update-package-lock.yml | 28 + .gitignore | 1 - .nvmrc | 2 +- CODEOWNERS | 1 - demo/button-icon.html | 2 +- demo/button-subtle.html | 2 +- demo/button.html | 2 +- demo/floating-buttons-standard.html | 2 +- demo/floating-buttons.html | 2 +- eslint.config.js | 7 + package-lock.json | 6685 +++++++++++++++++++++ package.json | 15 +- 17 files changed, 6746 insertions(+), 22 deletions(-) delete mode 100644 .eslintrc.json create mode 100644 .github/CODEOWNERS create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/update-package-lock.yml delete mode 100644 CODEOWNERS create mode 100644 eslint.config.js create mode 100644 package-lock.json diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index d5cc9f3..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "brightspace/lit-config" -} diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..bafd67d --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +* @BrightspaceUI/gaudi-dev +package-lock.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..82972e7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "npm" + 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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b85ef9..2b038af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,8 @@ jobs: - uses: Brightspace/setup-node@main with: node-version-file: .nvmrc + cache: 'npm' - name: Install dependencies - run: npm install + run: npm ci - name: Lint and Test run: npm run test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3fc34ce..8ee73b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,7 @@ jobs: uses: Brightspace/setup-node@main with: node-version-file: .nvmrc + cache: 'npm' - name: Semantic Release uses: BrightspaceUI/actions/semantic-release@main with: diff --git a/.github/workflows/update-package-lock.yml b/.github/workflows/update-package-lock.yml new file mode 100644 index 0000000..26312c2 --- /dev/null +++ b/.github/workflows/update-package-lock.yml @@ -0,0 +1,28 @@ +name: Update package-lock.json +on: + schedule: + - cron: "30 12 * * 2" # Tue 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/setup-node@main + with: + node-version-file: .nvmrc + cache: 'npm' + - name: Update package-lock.json + uses: BrightspaceUI/actions/update-package-lock@main + with: + AUTO_MERGE_METHOD: squash + AUTO_MERGE_TOKEN: ${{ secrets.PR_GITHUB_TOKEN }} + APPROVAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PR_GITHUB_TOKEN }} + SLACK_CHANNEL_FAILURE: '#gaudi-dev-alerts' + SLACK_CHANNEL_STALE_PR: '#gaudi-dev-alerts' + SLACK_TOKEN: ${{ secrets.D2L_SLACK_TOKEN }} diff --git a/.gitignore b/.gitignore index 504afef..c2658d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ node_modules/ -package-lock.json diff --git a/.nvmrc b/.nvmrc index 2edeafb..cabf43b 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20 \ No newline at end of file +24 \ No newline at end of file diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index c17c334..0000000 --- a/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @dlockhart @dbatiste diff --git a/demo/button-icon.html b/demo/button-icon.html index 0c0b398..94ec8d5 100644 --- a/demo/button-icon.html +++ b/demo/button-icon.html @@ -6,7 +6,7 @@ d2l-button-icon demo