Skip to content

Maintenance: release pipeline fails due to command issue #1118

Closed
@dreamorosi

Description

@dreamorosi

Bug description

As part of the release process lerna calls the version command present in each one of the package.json files. This command runs a series of other lifecycle hooks like liniting the codebase. In #1105 we changed the name of the script from format to lint-fix in all the package.json files of the utilities.

However, in that PR, we forgot to update the content of the version command that still referenced the old name format.

This PR updates the content of the command from npm run format && git add -A src to npm run lint-fix && git add -A src (format becomes lint-fix).

Expected Behavior

Release process should run without errors.

Current Behavior

Release process throws an error because the format command is called by version but doesn't exist anymore.

Possible Solution

Change the content of the version command from npm run format && git add -A src to npm run lint-fix && git add -A src (format becomes lint-fix).

Steps to Reproduce

Make a release, check result of this attempt.

Environment

  • Powertools version used: N/A
  • Packaging format (Layers, npm): N/A
  • AWS Lambda function runtime: N/A
  • Debugging logs: N/A

Related issues, RFCs

#1105

Metadata

Metadata

Assignees

Labels

automationThis item relates to automationcompletedThis item is complete and has been merged/shippedinternalPRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions