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

Remove redundant git checkout
This commit is contained in:
Piotr Jamróz
2024-06-18 13:43:38 +02:00
committed by GitHub
parent 75475f2675
commit 1ba5cd9853
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