diff --git a/actions/publish_to_npm.go b/actions/publish_to_npm.go index 66a15da..31ad175 100644 --- a/actions/publish_to_npm.go +++ b/actions/publish_to_npm.go @@ -17,11 +17,11 @@ type PublishToNPM struct { func (ctx PublishToNPM) Check() error { log.Info("I'm going to check if the workflow that publishes the NPM package has run already.") - return CheckWorkflowRun(ctx.GitHub, repos.NPMGoIPFS.Owner, repos.NPMGoIPFS.Repo, repos.NPMGoIPFS.DefaultBranch, repos.NPMGoIPFS.WorkflowName, repos.NPMGoIPFS.WorkflowJobName, fmt.Sprintf(" %s\n", ctx.Version.String()[1:])) + return CheckWorkflowRun(ctx.GitHub, repos.NPMKubo.Owner, repos.NPMKubo.Repo, repos.NPMKubo.DefaultBranch, repos.NPMKubo.WorkflowName, repos.NPMKubo.WorkflowJobName, fmt.Sprintf(" %s\n", ctx.Version.String()[1:])) } func (ctx PublishToNPM) Run() error { log.Info("I'm going to create a workflow run that publishes the NPM package.") - return ctx.GitHub.CreateWorkflowRun(repos.NPMGoIPFS.Owner, repos.NPMGoIPFS.Repo, repos.NPMGoIPFS.WorkflowName, repos.NPMGoIPFS.DefaultBranch) + return ctx.GitHub.CreateWorkflowRun(repos.NPMKubo.Owner, repos.NPMKubo.Repo, repos.NPMKubo.WorkflowName, repos.NPMKubo.DefaultBranch) } diff --git a/repos/npm_go_ipfs.go b/repos/npm_go_ipfs.go index 80a8a24..d8523d9 100644 --- a/repos/npm_go_ipfs.go +++ b/repos/npm_go_ipfs.go @@ -1,6 +1,6 @@ package repos -type npmGoIPFS struct { +type npmKubo struct { Owner string Repo string DefaultBranch string @@ -8,9 +8,9 @@ type npmGoIPFS struct { WorkflowJobName string } -var NPMGoIPFS = npmGoIPFS{ +var NPMKubo = npmKubo{ Owner: "ipfs", - Repo: "npm-go-ipfs", + Repo: "npm-kubo", DefaultBranch: "master", WorkflowName: "main.yml", WorkflowJobName: "publish",