This commit is contained in:
PaddiM8 2021-01-01 17:35:18 +01:00
parent cb3333c3ea
commit b8da84d085

View File

@ -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: