diff --git a/.github/workflows/publish-wasm.yml b/.github/workflows/publish-wasm.yml index c93b1c4fb81384..2165ee6667eccd 100644 --- a/.github/workflows/publish-wasm.yml +++ b/.github/workflows/publish-wasm.yml @@ -31,16 +31,11 @@ jobs: - uses: jetli/wasm-bindgen-action@v0.2.0 - name: "Run wasm-pack build" run: wasm-pack build --target web --scope astral-sh crates/ruff_wasm - - run: cd crates/ruff_wasm/pkg - - # Need to setup node after moving into generated pkg - # Otherwise, the .npmrc generated by the action does not get used since there is no root package.json - # The generated .npmrc reads from $NODE_AUTH_TOKEN for npm auth - uses: actions/setup-node@v4 with: node-version: 18 registry-url: "https://registry.npmjs.org" - name: "Publish" - run: npm publish --provenance --access public + run: npm publish --provenance --access public crates/ruff_wasm/pkg env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file