From 94c24e7ab21f79434ab26c7cf45b9d7da6c8dbd5 Mon Sep 17 00:00:00 2001 From: Tushar Pandey Date: Tue, 15 Sep 2026 21:42:27 +0530 Subject: [PATCH] chore: add workflow to deprecate v6 on npm --- .github/workflows/deprecate-v6.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/deprecate-v6.yml diff --git a/.github/workflows/deprecate-v6.yml b/.github/workflows/deprecate-v6.yml new file mode 100644 index 0000000000..e260ef372c --- /dev/null +++ b/.github/workflows/deprecate-v6.yml @@ -0,0 +1,20 @@ +name: Deprecate v6 on npm + +on: + workflow_dispatch: + +jobs: + deprecate: + runs-on: ubuntu-latest + steps: + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: 'https://registry.npmjs.org' + + - name: Deprecate auth0 v6 versions + run: | + npm deprecate auth0@">=6.0.0 <7.0.0" "auth0 v6 is deprecated and no longer receives updates. v7 is Management-API-only with no breaking changes for Management API usage; the authentication layer moved to @auth0/auth0-auth-js and @auth0/auth0-server-js, which receive all new features. Migration guide: https://github.com/auth0/node-auth0/blob/master/v7_MIGRATION_GUIDE.md" + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}