Skip to content

Commit

Permalink
dep updates ci added for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshuchawla009 committed Aug 3, 2022
1 parent e145316 commit 95d6dfc
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 21 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/angular-demo-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Update and Build examples on release

on:
release:
types: [published]
jobs:
angular-example:
strategy:
matrix:
node: ["16.x"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Check out Git repository
if: github.ref == 'refs/heads/master'
uses: actions/checkout@v2

- name: Set up node
if: github.ref == 'refs/heads/master'
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
registry-url: "https://registry.npmjs.org"
- name: Build react demo
if: github.ref == 'refs/heads/master'
run: |
npm i -g npm-check-updates
cd demo/angular-app
ncu -u --target=minor
ncu -u "/^@web3auth.*$/"
npm install
npm run build
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Update and Build examples on release

on: [push]
# release:
# types: [published]
on:
release:
types: [published]
jobs:
setup:
react-example:
strategy:
matrix:
node: ["16.x"]
Expand All @@ -14,31 +14,22 @@ jobs:

steps:
- name: Check out Git repository
if: github.ref == 'refs/heads/master'
uses: actions/checkout@v2

- name: Set up node
if: github.ref == 'refs/heads/master'
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
registry-url: "https://registry.npmjs.org"
- name: install global deps
- name: Build react demo
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
cd demo/react-app
ncu -u --target=minor
ncu -u "/^@web3auth.*$/"
npm install
npm run build

0 comments on commit 95d6dfc

Please sign in to comment.