Skip to content

Commit

Permalink
Configure npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Exidex committed Jan 27, 2024
1 parent d3e70a3 commit 92fe429
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"build": "tsc --noEmit && rollup --config rollup.config.ts --configPlugin typescript"
},
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/project-gauntlet/tools.git"
},
"files": [
"dist"
],
Expand All @@ -28,5 +32,8 @@
"@types/node": "^18.17.1",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
},
"publishConfig": {
"access": "public"
}
}

0 comments on commit 92fe429

Please sign in to comment.