- Create your branch from master branch. And your pull requests should head to master branch in general.
dist/*is generated during the release workflow and is not committed to the repository.- Run
npm run lint(oxlint),npm run fmt:check(oxfmt),npm run typecheck, andnpm testlocally. All run in CI. Usenpm run lint:fixto auto-fix lint issues andnpm run fmtto format the code.
Releases are published from GitHub Actions via the Release workflow.
- Open the Release workflow on the Actions tab.
- Click Run workflow and select the version bump (
patch/minor/major). - Approve the deployment to the
productionenvironment when prompted.
The workflow runs CI, bumps the version, builds the package, then:
- Publishes to npm using Trusted Publishing (OIDC) and provenance.
- Pushes the new version tag.
- Pushes the bumped
package.jsonandpackage-lock.jsonback to the master branch. - Creates a GitHub Release with auto-generated release notes.
Allow OIDC publishing from GitHub Actions on the package access settings:
- Publisher:
GitHub Actions - Organization or user:
nulab - Repository:
backlog-js - Workflow filename:
release.yml - Environment name:
production
Create a production environment on the Environment settings page. Adding a maintainer to Required reviewers lets you require approval before the publish step runs.