Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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=
Expand All @@ -112,4 +110,4 @@ jobs:
_tag="latest"
fi

npm publish --ignore-scripts --tag "$_tag"
npm publish --ignore-scripts --access public --tag "$_tag"
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,6 @@
"publishConfig": {
"access": "public",
"provenance": false,
"registry": "https://npm.pkg.github.com"
"registry": "https://registry.npmjs.org"
}
}