tmp=$(mktemp -d) && touch "$tmp"/{path,env}
export RUNNER_TEMP="$tmp" GITHUB_PATH="$tmp/path" GITHUB_ENV="$tmp/env"
env PATH="$(pwd)/.tools:$PATH" INPUT_CRYSTAL=nightly INPUT_SHARDS=true INPUT_TOKEN="$personal_access_token" INSTALL_CRYSTAL_PLATFORM=win32 node index.js
Make sure that npm test
passes. A pre-commit hook is available: git config core.hooksPath .tools/hooks
.
Continuous testing runs on GitHub Actions. Make sure that .github/workflows/main.yml and release.yml stay in sync, other than the differences that they already have.
Switch to master branch, in a clean state. Run .tools/release.sh x.y.z
(an actual next version number). You will be switched to the v1 branch, node_modules will be populated, and a tag will be created. The final command to push all this will be only printed. Run it. After this, a release also needs to be published on GitHub Marketplace.
The node_modules directory must not be present in the master branch. package-lock.json will be present, though.