CI: Fix release-npm-packages action (#77127)

* Remove dependency of NpmReleaseAction to the git binary

* Switch to using the node image for the release-npm-packages step
This commit is contained in:
Horst Gutmann
2023-10-27 09:20:20 +02:00
committed by GitHub
parent 1b6d39f823
commit aa9fc3be72
3 changed files with 3 additions and 10 deletions
-7
View File
@@ -3,7 +3,6 @@ package main
import (
"fmt"
"os"
"os/exec"
"strings"
"github.com/urfave/cli/v2"
@@ -74,12 +73,6 @@ func NpmReleaseAction(c *cli.Context) error {
return fmt.Errorf("no tag version specified, exitting")
}
cmd := exec.Command("git", "checkout", ".")
if err := cmd.Run(); err != nil {
fmt.Println("command failed to run, err: ", err)
return err
}
err := npm.PublishNpmPackages(c.Context, tag)
if err != nil {
return err