diff --git a/.github/publish-failure-issue-template.md b/.github/publish-failure-issue-template.md new file mode 100644 index 00000000..2b9ead2d --- /dev/null +++ b/.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. diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3f6d1729..9c339c38 100644 --- a/.github/workflows/publish.yml +++ b/.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