Merge pull request #181 from swapnilsarwe/gocomics-dec-updates #101
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: Node.js CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Installing NPM dependencies | |
run: npm install | |
- name: Formatting the json files | |
run: npm run format --if-present | |
- name: Stage Files | |
run: git add . | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
git diff-index --quiet HEAD || git commit -m "formatted files for merge request" | |
- name: Publish the formatted changes | |
run: git push -f | |
env: | |
CI: true |