diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29a1b02cf..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 @@ -67,6 +69,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 +106,6 @@ jobs: - name: Publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} TYPE_GRAPHQL_PRERELEASE: ${{ steps.prerelease.outputs.value }} run: | _tag= 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": [