Skip to content

Hotfix cpi 2344 prettier tailwind#12

Merged
luanlmd merged 6 commits into
masterfrom
hotfix-cpi-2344-prettier-tailwind
Sep 10, 2025
Merged

Hotfix cpi 2344 prettier tailwind#12
luanlmd merged 6 commits into
masterfrom
hotfix-cpi-2344-prettier-tailwind

Conversation

@vitorvmrs

Copy link
Copy Markdown
Contributor

This pull request introduces several improvements and refactors to the project's release and formatting infrastructure. The main changes include a significant overhaul of the GitHub Actions workflow for publishing, migration of release logic from JavaScript to shell scripts, enhancements to the Prettier configuration for plugin resolution, and improvements to default ignore patterns.

CI/CD Workflow Improvements:

  • The .github/workflows/publish.yml workflow has been restructured for better modularity and support for release candidates, hotfixes, and notifications. A new build job, improved artifact handling, tagging, and Discord notifications for both success and failure have been added.
  • A new composite GitHub Action, npm-publish, has been added to encapsulate the NPM publishing logic, improving reusability and maintainability. (.github/actions/npm-publish/action.yaml)

Release Logic Refactor:

  • The release check logic has been migrated from a Node.js script (scripts/should-release.js, now deleted) to a shell script (scripts/should-release.sh), simplifying dependencies and improving portability. [1] [2]
  • A new shell script, scripts/rc.sh, has been introduced to automate updating the package version to the next release candidate.

Prettier Configuration Enhancements:

  • The Prettier config now dynamically resolves the prettier-plugin-tailwindcss plugin if available, falling back gracefully if not. The config has been moved to prettierrc.js, and .prettierrc.js now simply requires it for consistency. [1] [2]R1)

Ignore Patterns Update:

  • Default ignore patterns for build artifacts and dependencies have been added to ignores.js to prevent accidental inclusion in operations that scan the file tree.

Version Bump:

  • The package version has been bumped from 2.5.5 to 2.5.6 in package.json.

@vitorvmrs vitorvmrs requested a review from a team as a code owner September 10, 2025 14:33
@luanlmd luanlmd merged commit e0fa746 into master Sep 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants