Merge pull request #2 from RosemanLabs/esteban-release-refs #13
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
on: | |
push: | |
branches: | |
- main | |
paths: | |
- src/** | |
jobs: | |
compile: | |
name: Compile typescript code | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
- name: Install dependencies | |
run: npm install | |
- name: Compile with ncc | |
run: npx @vercel/ncc build src/index.ts --minify | |
- name: Commit & Push changes | |
uses: actions-js/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main | |
message: 'Auto-compile dist code' | |
author_name: 'splitsh automation' | |
author_email: '[email protected]' | |