Update release.yml

This commit is contained in:
PaddiM8 2022-01-01 17:49:42 +01:00
parent 139739b97e
commit 6f7baffcd1

View File

@ -39,18 +39,12 @@ jobs:
yarn install yarn install
cd kalk cd kalk
wasm-pack build --scope paddim8 -- --no-default-features wasm-pack build --scope paddim8 -- --no-default-features
- name: Publish cd ..
run: | - uses: JS-DevTools/npm-publish@v1
sudo apt install expect with:
/usr/bin/expect <<EOD token: ${{ secrets.NPM_TOKEN }}
spawn npm adduser package: ./kalk/pkg/package.json
expect { access: public
"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
wasm-pack publish -a public
publish_kalk_web: publish_kalk_web:
name: publish kalk_web name: publish kalk_web
@ -67,20 +61,12 @@ jobs:
run: | run: |
cd web cd web
npm install npm install
- name: publish cd ..
run: | - uses: JS-DevTools/npm-publish@v1
cd web with:
sudo apt install expect token: ${{ secrets.NPM_TOKEN }}
/usr/bin/expect <<EOD package: ./web/package.json
spawn npm adduser access: public
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
npm publish
release_linux: release_linux:
name: release linux name: release linux