Skip to content

Commit 1c496c3

Browse files
committed
Add update-package-lock workflow
1 parent 5db3b24 commit 1c496c3

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update package-lock.json
2+
on:
3+
schedule:
4+
- cron: "30 12 * * 1-5" # Mon-Fri 8:30AM EDT. 7:30AM EST.
5+
workflow_dispatch: # manual trigger
6+
jobs:
7+
update:
8+
name: Update
9+
timeout-minutes: 10
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Create GH Token
13+
uses: actions/create-github-app-token@v1
14+
id: gh-token
15+
with:
16+
app-id: ${{ vars.GH_TOKEN_APP_ID }}
17+
private-key: ${{ secrets.GH_TOKEN_APP_PRIVATE_KEY }}
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
token: ${{ steps.gh-token.outputs.token }}
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version-file: .nvmrc
26+
cache: npm
27+
- name: Update package-lock.json
28+
uses: BrightspaceUI/actions/update-package-lock@main
29+
with:
30+
AUTO_MERGE_METHOD: squash
31+
AUTO_MERGE_TOKEN: ${{ steps.gh-token.outputs.token }}
32+
APPROVAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
GITHUB_TOKEN: ${{ steps.gh-token.outputs.token }}

0 commit comments

Comments
 (0)