Skip to content

Commit

Permalink
fix publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
nullsoepic committed Sep 24, 2024
1 parent 9d7752e commit 4202da1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
test-and-publish:
publish:
runs-on: ubuntu-latest

steps:
Expand All @@ -28,9 +28,6 @@ jobs:
run: bun run prepublishOnly

- name: Publish to npm
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: JS-DevTools/npm-publish@v3.1.1
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4202da1

Please sign in to comment.