Skip to content

Commit

Permalink
add npmjs deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
maddsua committed Jan 20, 2025
1 parent 8362587 commit 4c1eb0f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,20 @@ jobs:
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-npmjs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
- run: npm install
- run: npm run check
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "@maddsua/logpush-client",
"version": "0.1.0",
"version": "0.1.2",
"author": "maddsua",
"license": "MIT",
"type": "module",
"main": "./lib/client.ts",
"types": "./lib/client.ts",
"files": [
"lib"
],
"devDependencies": {
"esbuild": "^0.24.2",
"typescript": "^5.7.3"
Expand Down

0 comments on commit 4c1eb0f

Please sign in to comment.