From 89e9d87a04734b2e4b70624cc3236c4d2a1c0b21 Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Sat, 17 Aug 2024 14:02:53 +0200 Subject: [PATCH] ci: add deprecate-on-merge --- .github/workflows/deprecate-on-merge.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/deprecate-on-merge.yml diff --git a/.github/workflows/deprecate-on-merge.yml b/.github/workflows/deprecate-on-merge.yml new file mode 100644 index 0000000..ae50cad --- /dev/null +++ b/.github/workflows/deprecate-on-merge.yml @@ -0,0 +1,15 @@ +name: NPM Deprecate PR versions On Merge + +on: + pull_request: + types: + - closed + +jobs: + deprecate-on-merge: + name: NPM Deprecate PR versions On Merge + uses: sapphiredev/.github/.github/workflows/reusable-yarn-job.yml@main + with: + script-name: npm-deprecate --name "*pr-${{ github.event.number }}*" -d -v + secrets: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}