Skip to content

actions-secret-parser: Invalid 'main' field in package.json #71

@tommyhtran

Description

@tommyhtran

When running the azure/webapps-deploy@v2 action, I received the following error:

(node:2000) [DEP0128] DeprecationWarning: Invalid 'main' field in '/home/runner/work/_actions/azure/webapps-deploy/v2/node_modules/actions-secret-parser/package.json' of 'lib/index.js'. Please either fix that or report it to the module author

The configuration seems correct in this repository because /packages/secret-parser/tsconfig.json outputs into a /lib directory and the 'main' field in package.json is referencing that directory.

The problem is that the npm package actions-secret-parser is different from the configuration. index.js is in the root directory, the /lib directory does not exist. See https://www.npmjs.com/package/actions-secret-parser?activeTab=explore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions