diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9601a46..6bd37d63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,12 +74,12 @@ jobs: - name: Restore build artifact permissions run: cd dist && setfacl --restore=permissions-backup.acl continue-on-error: true - - name: Release + - name: Publish to npm with provenance env: - NPM_DIST_TAG: latest - NPM_REGISTRY: registry.npmjs.org - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx -p publib@latest publib-npm + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: | + cd dist/js + npm publish --provenance --access public --tag latest - name: Extract Version id: extract-version if: ${{ failure() }}