Skip to content

Release process

Daniel Lockyer edited this page Dec 12, 2022 · 4 revisions

⚠️ Ensure tests are passing: https://github.com/TryGhost/node-sqlite3/actions/workflows/ci.yml?query=branch%3Amain

# Checkout a temporary release branch
git checkout -b release

# Bump the version in package.json and create a tag
yarn version

# Push the commit and tag to GitHub
git push --follow-tags

# Wait until CI has created the binaries
# A draft release will have been created: https://github.com/TryGhost/node-sqlite3/releases
# Edit this release to add the changes and publish

# Check the files you're about to publish to NPM
npm pack

# Publish to NPM
npm publish

# Push the commit to `main`
git checkout main && git rebase release && git push

# Cleanup
git branch -D release
Clone this wiki locally