-
Notifications
You must be signed in to change notification settings - Fork 229
57 lines (51 loc) · 1.68 KB
/
demo-ci.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Update and Build examples on release
on:
release:
types: [published]
jobs:
demo:
strategy:
matrix:
node: ["18.x"]
os: [ubuntu-latest]
demo:
[
react-app,
next-app,
angular-app,
firebase-next-app,
firebase-react-app,
whitelabel-app,
starkex-react-app,
]
runs-on: ${{ matrix.os }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
registry-url: "https://registry.npmjs.org"
cache: "npm"
- name: Build ${{ matrix.demo }} demo
run: |
npm i -g npm-check-updates
cd demo/${{ matrix.demo }}
ncu -u --target=minor
ncu -u "/^@web3auth.*$/"
npm install
npm run build
- name: Commit Changes
uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
with:
push: origin HEAD:master
author_name: Torus Bot
author_email: [email protected]
default_author: user_info
# The way the action should handle pathspec errors from the add and remove commands. Three options are available:
# - ignore -> errors will be logged but the step won't fail
# - exitImmediately -> the action will stop right away, and the step will fail
# - exitAtEnd -> the action will go on, every pathspec error will be logged at the end, the step will fail.
# Default: ignore
pathspec_error_handling: exitImmediately