Skip to content

Commit

Permalink
Force rust toolchain for web-client NPM build
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
sisou committed Nov 12, 2024
1 parent a272d80 commit 1eba829
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,18 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.81.0
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- uses: jetli/[email protected]
with:
version: 'latest'
- name: Build package
working-directory: ./web-client
run: ./scripts/build.sh
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- name: Publish to npm
working-directory: ./web-client/dist
run: npm publish --tag next --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.SISOU_NPM_TOKEN }}
# - uses: actions/setup-node@v4
# with:
# registry-url: 'https://registry.npmjs.org'
# - run: npm install -g npm
# - name: Publish to npm
# working-directory: ./web-client/dist
# run: npm publish --tag next --provenance
# env:
# NODE_AUTH_TOKEN: ${{ secrets.SISOU_NPM_TOKEN }}

0 comments on commit 1eba829

Please sign in to comment.