Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.36 KB

PUBLISHING.md

File metadata and controls

65 lines (42 loc) · 1.36 KB

Publishing to npm

This document provides instructions for publishing the bootstrap-v4-rtl package to the npm registry.

Prerequisites

  1. You need an npm account. If you don't have one, create it at npmjs.com.
  2. You need to be logged in to npm on your local machine.

Publishing Process

1. Prepare the package

Before publishing, make sure your package is ready:

# Build the distribution files
npm run dist

2. Login to npm

If you're not already logged in:

npm login

3. Publish the package

To publish the package to npm:

npm publish

For prerelease versions (like the current 4.6.2-2), you must specify a tag:

npm publish --tag beta

If you want to publish a new version:

# Update version in package.json first
npm version patch|minor|major
npm publish

4. Verify the publication

After publishing, verify that your package is available on npm:

npm view bootstrap-v4-rtl

You can also check the package page at: https://www.npmjs.com/package/bootstrap-v4-rtl

Notes

  • The files field in package.json determines which files are included in the published package.
  • Make sure the version number in package.json is updated before publishing a new version.
  • If you're updating an existing package, make sure to follow semantic versioning principles.