diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6e1d724..4964baa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,5 @@ name: Publish to npm.js -on: - release: - types: [published] +on: workflow_dispatch jobs: build: runs-on: ubuntu-latest @@ -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: @@ -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 }} \ No newline at end of file