usermaven / usermaven-js

Usermaven provides instant actionable analytics to grow your SaaS business.
MIT License
1 stars 2 forks source link

CICD - add typescript ignore workspace root check #91

Closed amna0125 closed 1 month ago

amna0125 commented 1 month ago

PR Type

configuration changes


Description


Changes walkthrough ๐Ÿ“

Relevant files
Configuration changes
cd-develop.yml
Add ignore workspace root check to TypeScript installation

.github/workflows/cd-develop.yml
  • Added --ignore-workspace-root-check flag to the TypeScript
    installation command.
  • +1/-1     
    cd-master.yml
    Add ignore workspace root check to TypeScript installation

    .github/workflows/cd-master.yml
  • Added --ignore-workspace-root-check flag to the TypeScript
    installation command.
  • +1/-1     

    ๐Ÿ’ก PR-Agent usage: Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    github-actions[bot] commented 1 month ago

    PR Reviewer Guide ๐Ÿ”

    ๐Ÿ… Score: 95
    ๐Ÿงช No relevant tests
    ๐Ÿ”’ No security concerns identified
    โšก No key issues to review
    Code feedback:
    relevant file.github/workflows/cd-develop.yml
    suggestion       Consider pinning the version of TypeScript to a specific major version instead of using `latest`. This can help avoid unexpected issues if a new TypeScript version introduces breaking changes. [important]
    relevant linerun: yarn add typescript@latest --ignore-workspace-root-check

    relevant file.github/workflows/cd-master.yml
    suggestion       Similar to the suggestion for the develop workflow, pin the TypeScript version to a specific major version to ensure consistent builds across environments. [important]
    relevant linerun: yarn add typescript@latest --ignore-workspace-root-check

    github-actions[bot] commented 1 month ago

    PR Code Suggestions โœจ

    CategorySuggestion                                                                                                                                    Score
    Best practice
    Use a fixed version of typescript to ensure consistent builds ___ **Consider using a fixed version of typescript instead of latest to ensure consistent
    builds and avoid potential issues with new versions.** [.github/workflows/cd-develop.yml [38]](https://github.com/usermaven/usermaven-js/pull/91/files#diff-4f501c9619899525498594b20a28ab29c8547673701f9285b403540c8c09762fR38-R38) ```diff -run: yarn add typescript@latest --ignore-workspace-root-check +run: yarn add typescript@4.5.4 --ignore-workspace-root-check ```
    Suggestion importance[1-10]: 9 Why: Using a fixed version of `typescript` instead of `latest` is a best practice to ensure consistent builds and avoid potential issues with new versions. This suggestion addresses a significant concern in build stability.
    9