Update release-steam.yml

master
Vitaly Mikhailov 3 years ago committed by GitHub
parent dcacc8fef8
commit 063180f98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,10 +31,27 @@ jobs:
- uses: actions/setup-node@v3.4.1
with:
node-version: 16
#cache: 'npm'
#cache-dependency-path: steam-totp/package-lock.json
- run: cd ./steam-totp && npm ci && node .\src\index.js {{ secrets.STEAM_AUTH_CODE }}
- run: |
mkdir steam-totp
cat << EOT > steam-totp/package.json
{
"name": "steam-totp-gen",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"steam-totp": "^2.1.2"
}
}
- run: |
cat << EOT > steam-totp/index.js
var code = require('steam-totp').generateAuthCode(process.argv[0]);
console.log(`::add-mask::${code}`);
console.log(`::set-output name=totp::${code}`);
- run: cd ./steam-totp && npm ci && node ./src/index.js {{ secrets.STEAM_AUTH_CODE }}
- uses: CyberAndrii/setup-steamcmd@v1

Loading…
Cancel
Save