Browse Source

Creates an issue if npm publish task fails.

Henning Dieterichs 3 years ago
parent
commit
c8be2f8782
2 changed files with 15 additions and 0 deletions
  1. 7 0
      .github/publish-failure-issue-template.md
  2. 8 0
      .github/workflows/publish.yml

+ 7 - 0
.github/publish-failure-issue-template.md

@@ -0,0 +1,7 @@
+---
+title: NPM Publishing Failed
+assignees: []
+labels: bug
+---
+
+NPM publishing failed. Check the last GitHub Action log.

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

@@ -224,3 +224,11 @@ jobs:
         if: ${{ steps.state.outputs.skip_monaco_editor == 'false' }}
         working-directory: './monaco-editor/release'
         run: npm publish --tag ${{ steps.state.outputs.dist_tag }}
+
+      - name: Create Issue On Failure
+        if: failure()
+        uses: JasonEtco/create-an-issue@c796bdce77b0eebb39e2f4cb359893d764d4aa91
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          filename: .github/publish-failure-issue-template.md