Skip to content

Commit

Permalink
fix: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vuolter committed Nov 17, 2024
1 parent 123db08 commit f780e4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Publish Package to npmjs

on:
release:
types: [published]
push:
if: github.ref_name == 'main'
tags:
- 'v*'

jobs:
publish:
Expand All @@ -21,9 +23,9 @@ jobs:
cache: npm
registry-url: 'https://registry.npmjs.org'

- run: npm ci --no-audit
- run: npm ci --force --no-audit

- run: npm build
- run: npm run build

- run: npm publish --provenance --access public
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Publish Release to GitHub

on:
push:
if: github.ref_name == 'main'
tags:
- 'v*'

Expand All @@ -21,5 +22,4 @@ jobs:
with:
generateReleaseNotes: 'true'
prerelease: 'false'
reactions: +1,heart,rocket
summaryEnabled: 'false'

0 comments on commit f780e4f

Please sign in to comment.