diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 62fa891..83d087e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,9 +14,17 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 'lts' + registry-url: 'https://registry.npmjs.org' - name: Publish package to npmjs.com - run: npm publish + - run: npm ci + - run: npm run build + - run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish package to jsr.io run: npx jsr publish