Build playground #36
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
name: Build playground | |
on: | |
workflow_run: | |
workflows: ["Release react-forms"] | |
types: | |
- completed | |
jobs: | |
update-playground: | |
name: Build playground | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Update react form in playground | |
run: | | |
cd examples | |
npm install @maif/react-forms@latest --save | |
npm install | |
npm run build | |
env: | |
CI: "false" | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "github-actions" | |
git add --all | |
git commit -am "Update react-form version for playground" | |
- name: Push playground | |
uses: ad-m/github-push-action@master | |
with: | |
branch: main | |
github_token: ${{ secrets.GITHUB_TOKEN}} |