lucas-smart-sum-package
v0.0.7
Published
A simple package to sum two numbers
Readme
lucas-smart-sum-package
A simple npm package for learning purposes. This project demonstrates how to create, test, and publish an npm package with GitHub Actions CI/CD.
Features
- Simple sum function
- Postinstall welcome message
- Automated testing
- GitHub Actions workflow for publishing
Installation
npm install lucas-smart-sum-packageUsage
const { magicSum } = require('lucas-smart-sum-package');
console.log(magicSum(2, 3)); // 5
console.log(magicSum(-1, 1)); // 0Development
# Run tests
npm testPublishing
This package uses GitHub Actions for automated publishing. To release a new version:
- Update the version:
npm version patch - Push with tags:
git push --follow-tags - Create a GitHub Release with the matching tag (e.g.,
v0.0.5)
The workflow will automatically verify the version, run tests, and publish to npm.
Learning Purpose
This is a learning project to understand:
- npm package structure
- package.json configuration
- npm publishing workflow
- GitHub Actions CI/CD
- Semantic versioning
License
MIT
