Skip to content

Commit

Permalink
Merge pull request #18 from stefanak-michal/15-cd
Browse files Browse the repository at this point in the history
npm publish workflow
  • Loading branch information
stefanak-michal authored Apr 20, 2024
2 parents 0cdd3bd + b704b71 commit 3cae495
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish npm

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: npm ci

- name: Update package version
run: npm version ${{ github.ref }} --allow-same-version

- name: Build
run: npm run build

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
},
"keywords": [
"ThingsDB",
"javascript"
"javascript",
"websocket",
"database",
"connectivity"
],
"author": "Michal Stefanak (https://www.linkedin.com/in/michalstefanak/)",
"funding": [
Expand Down

0 comments on commit 3cae495

Please sign in to comment.