Skip to content

Merge pull request #46 from gscho/output-jira-key #124

Merge pull request #46 from gscho/output-jira-key

Merge pull request #46 from gscho/output-jira-key #124

name: "test -> build -> update lib if needed"
on:
push:
branches:
- 'master'
- 'add-release'
tags:
- '!**'
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
- name: "install"
run: npm ci --production
- name: "test"
run: npm run test
- name: "build"
run: npm run build
- name: "check if build has changed"
if: success()
id: has-changes
run: |
echo "LIB_DIFF=$(git diff --stat --name-only -- lib)" >> $GITHUB_ENV
- name: "Commit files"
if: ${{ env.LIB_DIFF }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "Build action bot"
git commit -m "chore: build action" -a
- name: release
run: npm run release