mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-04 21:51:20 +01:00
Test
This commit is contained in:
parent
cb3333c3ea
commit
b8da84d085
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@ -34,22 +34,18 @@ jobs:
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- name: Install wasm-pack
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
- name: Build
|
||||
- name: npm
|
||||
run: |
|
||||
yarn install
|
||||
- name: Build
|
||||
run: |
|
||||
cd kalk
|
||||
wasm-pack build --scope paddim8 -- --no-default-features
|
||||
- name: Publish
|
||||
run: |
|
||||
sudo apt install expect
|
||||
/usr/bin/expect <<EOD
|
||||
spawn wasm-pack login
|
||||
expect {
|
||||
"Username:" {send "paddim8\r"; exp_continue}
|
||||
"Password:" {send "${{ secrets.NPM_PASSWORD }}\r"; exp_continue}
|
||||
"Email: (this IS public)" {send "bakk@tuta.io\r"; exp_continue}
|
||||
}
|
||||
EOD
|
||||
export NPM_AUTH_TOKEN=${{ secrets.NPM_REGISTRY_TOKEN }}
|
||||
export NPM_EMAIL=bakk@tuta.io
|
||||
echo "_auth = $NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
echo "email = $NPM_EMAIL" >> ~/.npmrc
|
||||
wasm-pack publish -a public
|
||||
|
||||
#release_linux:
|
||||
|
Loading…
Reference in New Issue
Block a user