Welcome to the development guide for setup-custom-action-by-ts
! This document will guide you through setting up your development environment, running tests, building the project, and maintaining code quality.
Before you begin, make sure you have the following installed on your system:
-
Node.js 22+: Ensure you have the correct version of Node.js. You can check your Node.js version with:
node --version
-
npm or yarn: A package manager is required to install dependencies. You can check if you have npm or yarn installed with:
npm --version yarn --version
-
Clone the Repository: Start by cloning the project repository to your local machine and navigate to the project directory:
git clone https://github.com/pplmx/setup-custom-action-by-ts.git cd setup-custom-action-by-ts
-
Install Dependencies: Use npm or yarn to install all necessary dependencies:
npm install # or yarn install
This step will also set up any pre-commit hooks defined in the project, ensuring your code adheres to the project’s coding standards.
Running tests is crucial to ensure the stability of the project. To run all tests, use the following command:
npm test
# or
yarn test
This command will execute the test suite using jest
, ensuring all components work as expected.
[You may include additional details on the testing framework, testing strategy, or how to add new tests.]
To build the project and generate the compiled JavaScript files, use:
npm run build
# or
yarn build
This command will compile the TypeScript files into JavaScript and place them in the dist
directory.
Maintaining consistent code style is essential. We use biome
for linting and formatting. To check for any style issues and automatically fix them, run:
npm run lint
# or
yarn lint
This command will check the codebase for any style issues and ensure that all code follows the project's style guide.
By following this guide, you'll be well-prepared to contribute to setup-custom-action-by-ts
. Thank you for helping maintain and improve this project!