Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gconnect committed Mar 24, 2024
1 parent 5c5ea4d commit f370b3a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ jobs:
- name: Run tests
run: npm test

- name: Bump version
run: npm version patch --no-git-tag-version

- name: Push changes
run: git push origin master --follow-tags

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: npm publish
- name: Check changed files
id: check_changes
run: |
CHANGED_FILES=$(git diff-tree --name-only HEAD^ HEAD)
echo "::set-output name=changed_files::$CHANGED_FILES"
- name: Bump version and publish
if: ${{ steps.check_changes.outputs.changed_files != *'apps'* && steps.check_changes.outputs.changed_files != *'bin'* }}
run: |
npm version patch --no-git-tag-version
git push origin master --follow-tags
npm publish

0 comments on commit f370b3a

Please sign in to comment.