Skip to content

Commit

Permalink
test: tesing Ci setup
Browse files Browse the repository at this point in the history
  • Loading branch information
unrndm committed Oct 31, 2023
1 parent 2b05f61 commit ed5b74f
Showing 1 changed file with 37 additions and 11 deletions.
48 changes: 37 additions & 11 deletions .github/workflows/publish_to_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,44 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install rustup
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
# - name: Install pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 8

- name: install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: login with wasm-pack
run: wasm-pack login
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Install rustup
# run: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash

# - name: install rustup
# uses: dtolnay/rust-toolchain@stable
# with:
# targets: wasm32-unknown-unknown

- name: publish with wasm-pack
run: wasm-pack publish
# run: |
# curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
# source "$HOME/.cargo/env"
# curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
# - name: install wasm-pack
# run: npm add -g wasm-pack

- name: build & pack with wasm-pack
run: |
wasm-pack build
wasm-pack pack
- run: npm publish ./pkg --tag vars.GITHUB_REF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# - name: login with wasm-pack
# run: wasm-pack login
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit ed5b74f

Please sign in to comment.