Skip to content

Commit

Permalink
dep updates ci added for react example
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshuchawla009 committed Aug 3, 2022
1 parent 0dffef3 commit e145316
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/demo-ci.yml
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

0 comments on commit e145316

Please sign in to comment.