Skip to content

Cap latest release at v1.24.0 when JDK < 17 #31

Cap latest release at v1.24.0 when JDK < 17

Cap latest release at v1.24.0 when JDK < 17 #31

Workflow file for this run

name: Compile and push dist file
on:
push:
branches: [master]
jobs:
compile-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Compile with ncc
run: |
npm install
npx ncc build src/index.ts -o dist
- name: Push
env:
DIR: dist
run: |
if git diff --exit-code $DIR
then
exit 0
fi
git config user.name github-actions
git config user.email github-actions@github.com
git add $DIR/*
git commit -m "Update dist/index.js"
git push