--- # File : cd.yml name: 'cd' on: push: branches: [main] defaults: run: shell: 'bash' jobs: lint-test-build: name: '[build]' runs-on: 'ubuntu-latest' steps: - name: '[checkout] ${{ github.repository }} project' uses: 'actions/checkout@v2' with: repository: '${{ github.repository }}' - name: '[lint]' run: | echo TBA some linting - name: '[test]' run: | echo TBA some testing - name: '[build]' run: | git config --global url."https://github.com/".insteadOf ssh://git@github.com/ git config --global url."https://".insteadOf git:// git config --global url."https://".insteadOf ssh:// yarn yarn build - name: '[commit changes]' run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git add . git commit -m "chore: build" -a - name: '[push changes]' uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.ref }} ... # End of ci.yml