@@ -4,7 +4,7 @@ import path from "node:path";
44import * as process from "node:process" ;
55
66import * as core from "@actions/core" ;
7- import * as exec from "@actions/exec" ;
7+ import { exec , getExecOutput } from "@actions/exec" ;
88import readChangesets from "@changesets/read" ;
99
1010function getOptionalInput ( name : string ) {
@@ -30,7 +30,7 @@ export async function run() {
3030 const versionScript = core . getInput ( "version" , { required : true } ) ;
3131 const [ versionCmd , ...versionCmdArgs ] = versionScript . split ( / \s + / ) ;
3232
33- await exec . exec ( versionCmd , versionCmdArgs , { cwd } ) ;
33+ await exec ( versionCmd , versionCmdArgs , { cwd } ) ;
3434 } ) ;
3535
3636 await core . group ( "Setup .npmrc" , async ( ) => {
@@ -65,7 +65,7 @@ export async function run() {
6565 const publishedPackages = await core . group ( "Publishing packages" , async ( ) => {
6666 const publishScript = core . getInput ( "publish" , { required : true } ) ;
6767 const [ publishCmd , ...publishCmdArgs ] = publishScript . split ( / \s + / ) ;
68- const { stdout } = await exec . getExecOutput ( publishCmd , publishCmdArgs , { cwd } ) ;
68+ const { stdout } = await getExecOutput ( publishCmd , publishCmdArgs , { cwd } ) ;
6969
7070 // text from https://github.com/changesets/changesets/blob/dc83cb4dce0de726ca70593d4bef6f3f2c3d5278/packages/cli/src/commands/publish/index.ts#L91
7171 const SUCCESS_TEXT = "packages published successfully:" ;
0 commit comments