GitHub Action that installs nctl, the command line interface
for the Nine API and Deploio.
- uses: ninech/setup-nctl@v1
with:
version: latest # or e.g. 1.20.0
- run: nctl auth login
env:
NCTL_API_CLIENT_ID: ${{ secrets.NCTL_API_CLIENT_ID }}
NCTL_API_CLIENT_SECRET: ${{ secrets.NCTL_API_CLIENT_SECRET }}
NCTL_ORGANIZATION: ${{ secrets.NCTL_ORGANIZATION }}
- run: nctl get appsDownloads nctl from its GitHub releases, verifies the SHA-256 checksum, and caches it in the tool cache. Supports Linux, macOS and Windows on x64 and arm64.
| Input | Default | Description |
|---|---|---|
version |
latest |
nctl version to install. |
| Output | Description |
|---|---|
version |
The installed version. |
path |
Directory containing the nctl binary. |
npm ci
npm run all # format check, lint, typecheck, tests, buildReleases are created automatically from the commits on main with
semantic-release. PR titles must be
Conventional Commits (fix: ..., feat: ...,
feat!: ...), because squash merging makes them the commit message on main.
dist/ is not committed on main. GitHub runs actions from the repository contents, so each
release adds the built dist/ in a commit on top of the released main commit:
vX.Y.Zand the moving major tagvXpoint to that commit. Reference these.src/vX.Y.Zpoints to the releasedmaincommit. semantic-release uses these tags to find the previous version.
Referencing a branch or a main commit doesn't work, because it has no dist/.