Skip to content

Commit

Permalink
Merge pull request #22 from ipfs/npm-kubo
Browse files Browse the repository at this point in the history
refactor: rename from npm-go-ipfs to npm-kubo
  • Loading branch information
galargh authored Sep 2, 2023
2 parents da17581 + b3346f7 commit dbc6bfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions actions/publish_to_npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
6 changes: 3 additions & 3 deletions repos/npm_go_ipfs.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package repos

type npmGoIPFS struct {
type npmKubo struct {
Owner string
Repo string
DefaultBranch string
WorkflowName string
WorkflowJobName string
}

var NPMGoIPFS = npmGoIPFS{
var NPMKubo = npmKubo{
Owner: "ipfs",
Repo: "npm-go-ipfs",
Repo: "npm-kubo",
DefaultBranch: "master",
WorkflowName: "main.yml",
WorkflowJobName: "publish",
Expand Down

0 comments on commit dbc6bfc

Please sign in to comment.