To get started in the
.envfile, you need to declareAPIKEYhttps://mappable.world/docs/js-api/quickstart.html#get-api-key:
To get started:
nvm use
npm startor so if you didn't create the .env file
APIKEY=%APIKEY% npm startTo check with linter:
npm run lintFor the final build:
npm run buildAfter you create a new tag, or just push changes to the server, ci will be launched
npm version patch --no-git-tag-version
git add --all
git commit -m "New version"
git tag 0.0.1
git push --tags origin HEAD:mainor run
npm run bumpCI described here
.github/workflows/release.yml- triggered when a new tag is created.github/workflows/tests.yml- triggers on any push to the main branch
For it to work, you need to declare two secrets in the GitHub Action:
APIKEY- To run autotests on the JS API https://mappable.world/docs/js-api/quickstart.html#get-api-keyNPM_TOKEN- To publish your package to npm