feat
: New feature or enhancementfix
: Bug fix or issue resolutionchore
: Routine tasks or maintenancerefactor
: Code improvements (no functionality change)docs
: Documentation updatesstyle
: Code style or formatting changestest
: Tests additions or modificationsbuild
: Build system or external dependencies changesperf
: Performance improvementsci
: Continuous integration configuration changesrevert
: Revert a previous commitsecurity
: Security-related changes or fixesrelease
: Marks a release or version update
https://github.com/DevCetra/YOUR_PROJECT_NAME/settings/actions
If your commit message starts with +
, the prepare.yml
workflow will automatically format and apply fixes to the code, and add the provided commit message to CHANGELOG.md
under the current version specified in pubspec.yaml
.
brew install gh
gh auth login
git init
git add .
git commit -m "Initial commit"
gh repo create YOUR_PROJECT_NAME --public
git remote add origin https://github.com/DevCetra/YOUR_PROJECT_NAME.git
git push -u origin main
- Make your changes.
- Run
dart analyze
to check for errors. - Run
dart fix --apply
to apply fixes. - Run
dart format .
to format the code. - Update the version number in
pubspec.yaml
. - Update the version number in
CHANGELOG.md
. - Run
dart pub publish --dry-run
to check for errors. - Run
dart pub publish
to publish the package.
rm -rf .github/
git clone https://github.com/DevCetra/pub.dev_package_workflow.git .github
rm -rf .github/.git
cd your/project/path
find . -name '.DS_Store' -type f -delete
rmdir /s /q .github/
git clone https://github.com/DevCetra/pub.dev_package_workflow.git .github
rmdir /s /q .github/.git