From 1c10fe1ea65beb0897eca6b095d1cf1d06e96bf5 Mon Sep 17 00:00:00 2001 From: Rishi Raj Jain Date: Wed, 29 May 2024 10:40:06 +0530 Subject: [PATCH] deprecate --- .github/workflows/deprecate.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/deprecate.yml diff --git a/.github/workflows/deprecate.yml b/.github/workflows/deprecate.yml new file mode 100644 index 0000000..b28fb01 --- /dev/null +++ b/.github/workflows/deprecate.yml @@ -0,0 +1,21 @@ +name: Deprecate from npm + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.GH_TOKEN }} + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm + - run: npm ci + - run: npm deprecate @neondatabase/migrate-pg "*" "This package is deprecated, please use `@neondatabase/pg-import` instead." + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}