diff --git a/.github/workflows/release-node.yaml b/.github/workflows/release-node.yaml index 17257c23..220f8cde 100644 --- a/.github/workflows/release-node.yaml +++ b/.github/workflows/release-node.yaml @@ -411,18 +411,8 @@ jobs: shell: bash - name: Publish run: | - npm config set provenance true - if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$"; - then - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - npm publish --access public || exit 0 - elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+"; - then - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - npm publish --tag next --access public || exit 0 - else - echo "Not a release, skipping publish" - fi + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc + npm publish --verbose --provenance --access public || exit 0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/packages/typst.node/package.json b/packages/typst.node/package.json index 72208429..920b2ca7 100644 --- a/packages/typst.node/package.json +++ b/packages/typst.node/package.json @@ -20,7 +20,7 @@ "index.js" ], "napi": { - "name": "typst-ts-node-compiler", + "binaryName": "typst-ts-node-compiler", "// todo triple": "x86_64-unknown-freebsd", "triples": { "defaults": true, @@ -39,6 +39,10 @@ "engines": { "node": ">= 10" }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, "scripts": { "artifacts": "napi artifacts", "bench": "node -r @swc-node/register benchmark/bench.ts",