Skip to content

Commit 34a77dc

Browse files
benmineractions-user
authored andcommitted
update release workflow to use npm instead of github packages (#15) [v2.0.2]
1 parent 92b550b commit 34a77dc

3 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,14 @@ concurrency:
1111
permissions:
1212
pull-requests: write
1313
contents: read
14-
packages: write
1514

1615
jobs:
1716
release:
18-
name: Release package on GitHub Packages
17+
name: Release package to npm
1918
runs-on: ubuntu-latest
2019
permissions:
2120
contents: write
2221
id-token: write
23-
packages: write
2422
steps:
2523
- name: Checkout
2624
uses: actions/checkout@v4
@@ -59,7 +57,7 @@ jobs:
5957
uses: actions/setup-node@v4
6058
with:
6159
node-version: 22.x
62-
registry-url: "https://npm.pkg.github.com"
60+
registry-url: "https://registry.npmjs.org"
6361

6462
- name: Install latest npm
6563
run: |
@@ -102,7 +100,7 @@ jobs:
102100

103101
- name: Publish
104102
env:
105-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
106104
TYPE_GRAPHQL_PRERELEASE: ${{ steps.prerelease.outputs.value }}
107105
run: |
108106
_tag=
@@ -112,4 +110,4 @@ jobs:
112110
_tag="latest"
113111
fi
114112
115-
npm publish --ignore-scripts --tag "$_tag"
113+
npm publish --ignore-scripts --access public --tag "$_tag"

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ If you want more technical details or code samples, see the source or reach out
5353
### Installation
5454

5555
```bash
56-
# Add to .npmrc
57-
@scope3data:registry=https://npm.pkg.github.com
58-
5956
# Install with npm
6057
npm install @scope3data/type-graphql
6158

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@scope3data/type-graphql",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"private": false,
55
"description": "Create GraphQL schema and resolvers with TypeScript, using classes and decorators!",
66
"keywords": [
@@ -194,6 +194,6 @@
194194
"publishConfig": {
195195
"access": "public",
196196
"provenance": false,
197-
"registry": "https://npm.pkg.github.com"
197+
"registry": "https://registry.npmjs.org"
198198
}
199199
}

0 commit comments

Comments
 (0)