We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54220dd commit 746b247Copy full SHA for 746b247
1 file changed
src/index.ts
@@ -99,9 +99,16 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
99
`//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN}\n`
100
);
101
}
102
+ } else if (
103
+ process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN &&
104
+ process.env.ACTIONS_ID_TOKEN_REQUEST_URL
105
+ ) {
106
+ core.info(
107
+ "No NPM_TOKEN found, but OIDC is available - using npm trusted publishing"
108
+ );
109
} else {
110
core.info(
- "No NPM_TOKEN found - assuming trusted publishing or npm is already authenticated"
111
+ "No NPM_TOKEN or OIDC available - assuming npm is already authenticated"
112
113
114
0 commit comments