Add VersionPrefix support to csproj, vbproj, fsproj, and props files #10
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: npm install | |
- name: Compile TypeScript files | |
run: npm run build | |
- name: Package compiled files into single JS file | |
run: npm run package | |
- name: Commit packaged files | |
if: github.event_name != 'pull_request' | |
run: | | |
git config user.name "vers-one" | |
git config user.email "[email protected]" | |
CHANGED_FILES=$(git diff --name-only) | |
if [[ ${CHANGED_FILES} ]]; then | |
git add . | |
git commit -m "Automatic dist build" | |
git push | |
else | |
echo "No changed files to commit." | |
fi |