Browse Source

Only run publish workflow on main monaco-editor repo

Signed-off-by: Matthew Peveler <matt@popsql.com>
Matthew Peveler 3 years ago
parent
commit
7ec6ac210f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .github/workflows/publish.yml

+ 1 - 0
.github/workflows/publish.yml

@@ -12,6 +12,7 @@ on:
         default: 'true'
 jobs:
   publish:
+    if: github.repository == "microsoft/monaco-editor"
     name: Publish to npm
     runs-on: ubuntu-latest
     steps: