We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1213b66 commit ad1c4b7Copy full SHA for ad1c4b7
pkg/build/cmd/publishstorybook.go
@@ -39,7 +39,7 @@ func PublishStorybookAction(c *cli.Context) error {
39
return err
40
}
41
42
- if latest, err := isLatest(cfg); err != nil && latest {
+ if latest, err := isLatest(cfg); err == nil && latest {
43
log.Printf("Copying storybooks to latest...")
44
if err := gcs.CopyRemoteDir(c.Context, gcs.Bucket(cfg.srcBucket), fmt.Sprintf("artifacts/storybook/v%s", cfg.tag), bucket, "latest"); err != nil {
45
0 commit comments