Skip to content

Commit

Permalink
Fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrunyon committed Jul 14, 2024
1 parent 45c1fa8 commit 75a8d7c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/publish-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,11 @@ jobs:
- uses: jetli/[email protected]
- 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 }}

0 comments on commit 75a8d7c

Please sign in to comment.