Skip to content

Commit b2a5fc2

Browse files
committed
Updating config one more time to more closely match charsheet relay
1 parent 93daba7 commit b2a5fc2

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,22 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818

19-
- name: Setup Node.js & registry
19+
- name: Set up Node.js & GitHub Packages registry
2020
uses: actions/setup-node@v4
2121
with:
2222
node-version: '18.x'
2323
registry-url: 'https://npm.pkg.github.com'
24-
25-
- name: Authenticate to GitHub Packages
26-
run: |
27-
echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
2824

2925
- name: Install, build, & test
3026
run: |
3127
npm install --legacy-peer-deps
3228
npm run build
3329
npm test
30+
env:
31+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
3432

3533
- name: Publish to GitHub Packages
3634
run: npm publish
35+
env:
36+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
37+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@roll20/detect-gpu",
3-
"version": "5.0.72",
3+
"version": "5.0.73",
44
"description": "Classify GPU's based on their benchmark score in order to provide an adaptive experience.",
55
"author": "Tim van Scherpenzeel",
66
"license": "MIT",
@@ -19,8 +19,7 @@
1919
"dist"
2020
],
2121
"publishConfig": {
22-
"registry": "https://npm.pkg.github.com/",
23-
"access": "public"
22+
"@roll20:registry": "https://npm.pkg.github.com"
2423
},
2524
"keywords": [],
2625
"scripts": {
@@ -35,8 +34,7 @@
3534
"example": "rollup -w -c rollup/config.dev.ts --configPlugin rollup-plugin-typescript2",
3635
"parse-analytics": "node ./scripts/analytics_parser.js",
3736
"update-benchmarks": "rimraf benchmarks && mkdir -p benchmarks && mkdir -p benchmarks-min && ts-node -O '{\"module\":\"commonjs\"}' ./scripts/update_benchmarks.ts && tar -czvf benchmarks.tar.gz benchmarks-min/*.json && rm -rf benchmarks-min",
38-
"prepare": "npm run build",
39-
"release": "npm publish"
37+
"prepare": "npm run build"
4038
},
4139
"dependencies": {
4240
"webgl-constants": "^1.1.1"

0 commit comments

Comments
 (0)