-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dep updates ci added for react example
- Loading branch information
1 parent
0dffef3
commit e145316
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Update and Build examples on release | ||
|
||
on: [push] | ||
# release: | ||
# types: [published] | ||
jobs: | ||
setup: | ||
strategy: | ||
matrix: | ||
node: ["16.x"] | ||
os: [ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
registry-url: "https://registry.npmjs.org" | ||
- name: install global deps | ||
if: github.ref == 'refs/heads/master' | ||
run: | | ||
npm i -g npm-check-updates | ||
react-example: | ||
strategy: | ||
matrix: | ||
node: ["16.x"] | ||
os: [ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
needs: [setup] | ||
- name: Build react demo | ||
# if: github.ref == 'refs/heads/master' | ||
run: | | ||
cd demo/react-app | ||
ncu -u --target=minor | ||
ncu -u "/^@web3auth.*$/" | ||
npm install | ||
npm run build | ||