Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Benji Visser <benji@093b.org>
  • Loading branch information
noqcks committed Feb 15, 2025
1 parent fdf69ba commit 46c4bdb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 24 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
name: Publish Package to npmjs
name: Publish

on:
release:
types: [published]

push:
tags:
- 'v*'

jobs:
build:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')

publish:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -30,6 +39,6 @@ jobs:
- name: Push version changes to main branch
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: release ${{ github.event.release.tag_name }}"
commit_message: "chore: release ${{ github.ref_name }}"
branch: ${{ github.event.repository.default_branch }}
file_pattern: package.json
18 changes: 0 additions & 18 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 46c4bdb

Please sign in to comment.