Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Oct 7, 2025

Problem

The CI release action was failing with the following error:

Run yarn install --frozen-lockfile --non-interactive
yarn install v1.22.22
error SyntaxError: Invalid value type 1566:0 in /home/runner/work/taskforce-connector/taskforce-connector/yarn.lock
    at Parser.unexpected (/usr/local/lib/node_modules/yarn/lib/cli.js:64026:11)
    at Parser.parse (/usr/local/lib/node_modules/yarn/lib/cli.js:64154:16)

This prevented the release workflow from installing dependencies and completing the release process.

Root Cause

The yarn.lock file was corrupted and could not be parsed by yarn 1.22.22. Additionally, the repository contained both package-lock.json (npm) and yarn.lock (yarn) files, which caused conflicts since the project is configured to use yarn exclusively (as specified by "packageManager": "[email protected]" in package.json).

Solution

This PR fixes the issue by:

  1. Regenerating the yarn.lock file - Created a fresh, valid lockfile that can be properly parsed by yarn 1.22.22
  2. Removing package-lock.json - Eliminated the npm lock file to avoid resolution inconsistencies from mixing package managers
  3. Adding package-lock.json to .gitignore - Prevents the npm lock file from being accidentally committed in the future

Verification

  • yarn install --frozen-lockfile --non-interactive now completes successfully
  • yarn build works correctly
  • ✅ The release workflow can now install dependencies and proceed with releases

Fixes the CI error reported in the issue.

Original prompt

This section details on the original issue you should resolve

<issue_title>[CI] Error in the release action</issue_title>
<issue_description>Currently we get an error in the release action:

Run yarn install --frozen-lockfile --non-interactive
yarn install v1.22.22
error SyntaxError: Invalid value type 1566:0 in /home/runner/work/taskforce-connector/taskforce-connector/yarn.lock
at Parser.unexpected (/usr/local/lib/node_modules/yarn/lib/cli.js:64026:11)
at Parser.parse (/usr/local/lib/node_modules/yarn/lib/cli.js:64154:16)
at Parser.parse (/usr/local/lib/node_modules/yarn/lib/cli.js:64131:26)
at parse (/usr/local/lib/node_modules/yarn/lib/cli.js:64231:21)
at module.exports.exports.default (/usr/local/lib/node_modules/yarn/lib/cli.js:63793:96)
at Function. (/usr/local/lib/node_modules/yarn/lib/cli.js:3068:63)
at Generator.next ()
at step (/usr/local/lib/node_modules/yarn/lib/cli.js:310:30)
at /usr/local/lib/node_modules/yarn/lib/cli.js:321:13
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Process completed with exit code 1.</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #117

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] Fix syntax error in yarn.lock file Fix yarn.lock corruption causing release action to fail Oct 7, 2025
@Copilot Copilot AI requested a review from manast October 7, 2025 08:10
Copilot finished work on behalf of manast October 7, 2025 08:10
Copy link
Contributor

@manast manast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@manast manast marked this pull request as ready for review October 7, 2025 08:14
@Copilot Copilot AI review requested due to automatic review settings October 7, 2025 08:14
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

[CI] Error in the release action

3 participants