From 6662d40b78ef311d497796417f7a567fa4157315 Mon Sep 17 00:00:00 2001 From: Johannes Jonker Date: Wed, 20 Nov 2024 16:04:07 +0100 Subject: [PATCH] Fix missing ESM config in package.json --- CHANGELOG.md | 4 ++++ README.md | 4 ++-- package.json | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44c6027..b2ff5d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## 1.0.1 + +- Fix missing ESM config in `package.json`. + ## 1.0.0 - **⭐️ NEW:** Add option to resolve alerts on success. diff --git a/README.md b/README.md index d4c4fb1..6247e39 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Adding this to your `steps` will send a PagerDuty alert if the job fails. It is ```yaml - name: Send PagerDuty alert on failure if: ${{ failure() }} - uses: Entle/action-pagerduty-alert@1.0.0 + uses: Entle/action-pagerduty-alert@1.0.1 with: pagerduty-integration-key: '${{ secrets.PAGERDUTY_INTEGRATION_KEY }}' pagerduty-dedup-key: github_workflow_failed @@ -52,7 +52,7 @@ Optionally, add the below step after the one above to resolve the alert if a sub ```yaml - name: Resolve PagerDuty alert on success if: ${{ !failure() }} - uses: Entle/action-pagerduty-alert@1.0.0 + uses: Entle/action-pagerduty-alert@1.0.1 with: pagerduty-integration-key: '${{ secrets.PAGERDUTY_INTEGRATION_KEY }}' pagerduty-dedup-key: github_workflow_failed diff --git a/package.json b/package.json index 75112d5..2ea31ce 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "action-pagerduty-alert", - "version": "1.0.0", + "version": "1.0.1", "description": "GitHub Action to send a critical PagerDuty alert", - "main": "index.js", + "type": "module", + "exports": "./index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" },