-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.04 KB
/
upgrade-deps.yml
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
34
35
36
37
38
39
40
#
# Copyright 2021 DXOS.org
#
on:
workflow_dispatch:
schedule:
- cron: '0 5 * * 1,2,4'
name: Upgrade DXOS dependencies
jobs:
upgrade:
name: Upgrade DXOS dependencies
runs-on: ubuntu-latest
timeout-minutes: 15
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/setup-node@v1
with:
node-version: 16.1
- name: Upgrade DXOS dependencies
uses: technote-space/create-pr-action@v2
with:
EXECUTE_COMMANDS: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
npx npm-check-updates -u --deep '@dxos/*'
npm install -g @microsoft/rush pnpm
node common/scripts/install-run-rush.js update
rm -rf .npmrc
COMMIT_MESSAGE: 'chore: Upgrade DXOS dependencies'
COMMIT_NAME: 'GitHub Actions'
COMMIT_EMAIL: '[email protected]'
PR_BRANCH_NAME: 'upgrade-deps-${PR_ID}'
PR_TITLE: 'chore: Upgrade DXOS dependencies'
GITHUB_TOKEN: ${{ secrets.CREATE_PR_TOKEN }}