Skip to content

Commit

Permalink
fix: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yamitzky committed Feb 11, 2025
1 parent e3c56d3 commit 79029c3
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: Publish Package to npmjs
name: Release
on:
release:
types: [published]
push:
branches:
- main

permissions:
contents: read # for checkout

jobs:
build:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down Expand Up @@ -38,7 +44,7 @@ jobs:
run: pnpm audit signatures

- name: Publish to npm
run: pnpm run release
run: pnpx semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 79029c3

Please sign in to comment.