From 05e58bf2d8d014dcf4bac4667ea09d1c5c184e00 Mon Sep 17 00:00:00 2001 From: Ben Miner Date: Fri, 26 Sep 2025 16:41:29 -0500 Subject: [PATCH 1/3] modify release flow to use npm --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29a1b02cf..7363cc58f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,6 +67,10 @@ jobs: run: | npm ci + - name: Configure npm authentication + run: | + echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc + - name: Prepare package run: | npm run prepublishOnly @@ -100,7 +104,7 @@ jobs: - name: Publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} TYPE_GRAPHQL_PRERELEASE: ${{ steps.prerelease.outputs.value }} run: | _tag= From 1d51c82bfe4b2e7091f135f075927bf6986fbd52 Mon Sep 17 00:00:00 2001 From: Ben Miner Date: Fri, 26 Sep 2025 16:42:24 -0500 Subject: [PATCH 2/3] set base version to 2.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5f22ac8f1..324165192 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@scope3data/type-graphql", - "version": "2.0.1", + "version": "2.0.0", "private": false, "description": "Create GraphQL schema and resolvers with TypeScript, using classes and decorators!", "keywords": [ From 6593e6c77276eb81ca1430cbd98ad9be1a966f53 Mon Sep 17 00:00:00 2001 From: Ben Miner Date: Fri, 26 Sep 2025 16:44:08 -0500 Subject: [PATCH 3/3] correct npm auth token use --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7363cc58f..4f25f14c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,8 @@ jobs: permissions: contents: write id-token: write + env: + NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} steps: - name: Checkout uses: actions/checkout@v4 @@ -104,7 +106,6 @@ jobs: - name: Publish env: - NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} TYPE_GRAPHQL_PRERELEASE: ${{ steps.prerelease.outputs.value }} run: | _tag=