Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Jun 5, 2024
1 parent 452a5ba commit 6c29b4b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Publish Package to npmjs
on:
release:
types: [published]
push:
branches:
- main
create:
tags:
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -16,3 +19,12 @@ jobs:
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
This is an automated release created by the GitHub Actions workflow.
draft: false
prerelease: false

0 comments on commit 6c29b4b

Please sign in to comment.