Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set up NPM auto publish on commit
Browse files Browse the repository at this point in the history
mrderyk committed May 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 06f9f03 commit 358ab70
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: npm-publish
on:
push:
branches:
- chore/auto_publish # Change this to your default branch
jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Check version changes
uses: EndBug/version-check@v2
id: check

- name: Version update detected
if: steps.check.outputs.changed == 'true'
run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'

- name: Draft release
if: steps.check.outputs.changed == 'true'
run: 'gh release create v${{ steps.check.outputs.version }} -d --notes "## FEATURES \n\n ## BUG FIXES"'

0 comments on commit 358ab70

Please sign in to comment.