Skip to content

Commit

Permalink
fixed: publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiIgna committed Sep 12, 2024
1 parent 68e71d8 commit be562ec
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Publish
on:
push:
branches:
- main
release:
types: [published]

jobs:
publish:
Expand All @@ -20,9 +19,9 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Publish package to npmjs.com
- run: npm ci
- run: npm run build
- run: npm publish --provenance --access public
run: npm ci
run: npm run build
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down

0 comments on commit be562ec

Please sign in to comment.