Skip to content

Commit f1e47cb

Browse files
committed
chore: configure npm trusted publishing
1 parent fd12d92 commit f1e47cb

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Node.js
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: '20'
29+
node-version: '24'
3030
cache: 'npm'
3131
registry-url: 'https://registry.npmjs.org'
3232

@@ -39,11 +39,7 @@ jobs:
3939
- name: Publish (dry run)
4040
if: ${{ github.event.inputs.dry_run == 'true' }}
4141
run: npm publish --dry-run
42-
env:
43-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4442

4543
- name: Publish to npm
4644
if: ${{ github.event_name == 'release' || github.event.inputs.dry_run == 'false' }}
4745
run: npm publish --provenance --access public
48-
env:
49-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"license": "MIT",
1818
"repository": {
1919
"type": "git",
20-
"url": "git+https://github.com/Hyper3Labs/hyper-scatter.git"
20+
"url": "git+https://github.com/Hyper3Labs/hyper-scatter.git"
2121
},
22-
"bugs": {
22+
"bugs": {
2323
"url": "https://github.com/Hyper3Labs/hyper-scatter/issues"
24-
},
25-
"homepage": "https://github.com/Hyper3Labs/hyper-scatter#readme",
24+
},
25+
"homepage": "https://github.com/Hyper3Labs/hyper-scatter#readme",
2626
"type": "module",
2727
"sideEffects": false,
2828
"exports": {

0 commit comments

Comments
 (0)