Change github ci #11
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: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18.20.4 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.20.4 | |
- name: Install dependencies | |
run: | | |
cd elixir | |
npm ci | |
- name: Build TypeScript | |
run: | | |
cd elixir/plugin | |
npx tsc | |
- name: Commit and push changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git diff --quiet && git diff --staged --quiet || (git commit -m "Build TypeScript [skip ci]" && git push) |