-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45c1fa8
commit 75a8d7c
Showing
1 changed file
with
1 addition
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |