From 05122d3508ac18faaf9677c9cd68b1d4bbea9cca Mon Sep 17 00:00:00 2001 From: Ben Miner Date: Fri, 26 Sep 2025 16:26:02 -0500 Subject: [PATCH] update release workflow to use npm instead of github packages --- .github/workflows/release.yml | 10 ++++------ README.md | 3 --- package.json | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3dea29d05..29a1b02cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,16 +11,14 @@ concurrency: permissions: pull-requests: write contents: read - packages: write jobs: release: - name: Release package on GitHub Packages + name: Release package to npm runs-on: ubuntu-latest permissions: contents: write id-token: write - packages: write steps: - name: Checkout uses: actions/checkout@v4 @@ -59,7 +57,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22.x - registry-url: "https://npm.pkg.github.com" + registry-url: "https://registry.npmjs.org" - name: Install latest npm run: | @@ -102,7 +100,7 @@ jobs: - name: Publish env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} TYPE_GRAPHQL_PRERELEASE: ${{ steps.prerelease.outputs.value }} run: | _tag= @@ -112,4 +110,4 @@ jobs: _tag="latest" fi - npm publish --ignore-scripts --tag "$_tag" + npm publish --ignore-scripts --access public --tag "$_tag" diff --git a/README.md b/README.md index bcb3e3127..a18c4322b 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,6 @@ If you want more technical details or code samples, see the source or reach out ### Installation ```bash -# Add to .npmrc -@scope3data:registry=https://npm.pkg.github.com - # Install with npm npm install @scope3data/type-graphql diff --git a/package.json b/package.json index 04ba16870..5f22ac8f1 100644 --- a/package.json +++ b/package.json @@ -194,6 +194,6 @@ "publishConfig": { "access": "public", "provenance": false, - "registry": "https://npm.pkg.github.com" + "registry": "https://registry.npmjs.org" } }