-
Notifications
You must be signed in to change notification settings - Fork 1.5k
33 lines (33 loc) · 1.02 KB
/
update-package-lock.yml
File metadata and controls
33 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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:
- name: Create GH Token
uses: actions/create-github-app-token@v1
id: gh-token
with:
app-id: ${{ vars.GH_TOKEN_APP_ID }}
private-key: ${{ secrets.GH_TOKEN_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ steps.gh-token.outputs.token }}
- name: Setup Node
uses: actions/setup-node@v4
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: ${{ steps.gh-token.outputs.token }}
APPROVAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.gh-token.outputs.token }}