This document describes how to publish stepflow to GitHub Packages and how to install it in your projects.
- Ensure your changes are merged to the main branch
- Go to Releases in the GitHub repository
- Click Draft a new release
- Create a tag matching the version in
package.json(e.g.,v0.1.0) - Publish the release
The GitHub Actions workflow (.github/workflows/publish.yml) automatically:
- Installs dependencies
- Builds the package
- Publishes to GitHub Packages
# Authenticate with GitHub Packages
npm login --registry=https://npm.pkg.github.com
# Username: your GitHub username
# Password: Personal Access Token with write:packages scope
# Build and publish
npm run build
npm publishCreate or update .npmrc in your project root:
@multiplier-labs:registry=https://npm.pkg.github.com
Generate a Personal Access Token (PAT):
- Go to GitHub → Settings → Developer settings → Personal access tokens
- Generate a token with
read:packagesscope - Authenticate npm:
npm login --registry=https://npm.pkg.github.com
# Username: your GitHub username
# Password: your PAT
# Email: your emailAlternatively, add to your ~/.npmrc (for global auth):
//npm.pkg.github.com/:_authToken=YOUR_PAT_HERE
npm install @multiplier-labs/stepflowFor GitHub Actions, use the built-in GITHUB_TOKEN:
- uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://npm.pkg.github.com'
scope: '@multiplier-labs'
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}For other CI systems, set NODE_AUTH_TOKEN environment variable to a PAT with read:packages scope.
Update the version in package.json before creating a release:
npm version patch # 0.1.0 → 0.1.1
npm version minor # 0.1.0 → 0.2.0
npm version major # 0.1.0 → 1.0.0Then push the tag and create a release on GitHub.