-
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.
- Loading branch information
1 parent
e145316
commit 95d6dfc
Showing
2 changed files
with
47 additions
and
21 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,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 | ||
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