Skip to content

Commit

Permalink
Merge pull request #5 from rumaan/gh-workflow
Browse files Browse the repository at this point in the history
fix: Gh actions workflow
  • Loading branch information
rumaan authored Dec 9, 2024
2 parents f1d3c41 + 8b6168c commit ec03d24
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Publish to npm.js
on:
release:
types: [published]
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -12,7 +10,7 @@ jobs:
- name: checkout
# Setup .npmrc file to publish to npm
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
Expand All @@ -24,6 +22,6 @@ jobs:
- name: Build
run: npm run lib:build
- name: Publish
run: npx can-npm-publish --yes --verbose && npm run publish --provenance --access public || echo "Failed to publish"
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit ec03d24

Please sign in to comment.