This repository uses GitHub Pages to host the documentation.
- Go to Settings > Pages
- Under Build and deployment > Source, select GitHub Actions
- The documentation will be automatically deployed on:
- Pushes to
mainbranch (docs changes) - Release publishing
- Pushes to
| Workflow | Trigger | Description |
|---|---|---|
ci.yml |
Push to main, Pull requests | Build, test, lint |
release.yml |
GitHub Release published | Publish to npm + docs |
docs.yml |
Push to main (docs changes), Manual | Deploy docs to GH Pages |
publish.yml |
Manual dispatch | Manual npm publish |
- Create a GitHub Release
- The
release.ymlworkflow will automatically publish to npm
- Go to Actions > NPM Publish (Manual)
- Click Run workflow
- Select the npm tag (
latest,next,beta,alpha) - Click Run workflow
| Secret | Description | How to get |
|---|---|---|
NPM_TOKEN |
npm authentication token | Generate at https://www.npmjs.com/settings/tokens |
- Create an npm account or use existing one
- Generate an Automation token at https://www.npmjs.com/settings/your-username/tokens
- Add the token as a repository secret:
- Go to Settings > Secrets and variables > Actions
- Click New repository secret
- Name:
NPM_TOKEN - Value: Your npm token
- Click Add secret
After enabling GitHub Pages, the documentation will be available at:
https://srah.github.io/node-apk/
# Start docs dev server
npm run docs:dev
# Build docs
npm run docs:build
# Preview production build
npm run docs:preview