Merge pull request #3600 from plentymarkets/feat/eu-responsible-phone-no #493
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: Automatic build | |
on: | |
push: | |
branches: [ stable ] | |
env: | |
NODE_VERSION: "14" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.PUBLIC_PAT_CICD4_PUBLIC }} | |
- name: Use Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install dependencies | |
run: | | |
rm -rf node_modules | |
npm install | |
- name: Build files | |
run: | | |
npm run build | |
- name: Commit and push | |
run: | | |
git config user.name "plenty-cicd-4" | |
git config user.email "[email protected]" | |
git add . | |
git diff-index --quiet HEAD || git commit -m "Automatic build" && git push origin HEAD:stable |