Easy to use CLI tool to publish WebXR games to heyVR from CI/CD.
The command will check all arguments upfront to reduce CI config iterations.
Install the command in your CI scripts:
npm i -g heyvr-cli
The command expects a HEYVR_ACCESS_TOKEN
variable
in the environment. Make sure to keep it safe via
CI secrets.
Create an access token in your developer account settings.
The command can be used as follows:
heyvr --version <version> --gameId <gameId>
version x.y.z, converted into 'minor'/'major'/'p
atch'
gameId Game ID for heyVR.
path Path to the game, index.html required at
root.
Default deploy/ or public/.
The command expects 'HEYVR_ACCESS_TOKEN' environm
ent
variable for authentication.
heyVR expects you to pass major
, minor
, patch
instead of an absolute version to enforce semantic
versioning.
Since this is really inconvenient for tagging from
CI, the tool will automatically convert the version
passed from x.y.z
to the correct increment by
detecting .0
suffixes:
-
x.0.0
=>major
-
x.y.0
=>minor
-
x.y.z
=>patch
The game id of your game on heyVR.
By default deploy/
is uploaded. If not found,
public/
is uploaded.
You can override this behavior by passing an explicit
--path
argument.
The given path needs to contain an index.html
.
Default 1
.
MIT License, see LICENSE
for more information.