Skip to content

Commit 29c845d

Browse files
committed
Add package publish details
1 parent 1ff328c commit 29c845d

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/publish-npm.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish Package to npmjs
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
# Setup Node.js environment with Yarn
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: '20.x'
14+
registry-url: 'https://registry.npmjs.org'
15+
# Install dependencies using Yarn
16+
- run: yarn install --frozen-lockfile
17+
# Publish the package to npm
18+
- run: yarn publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_REPO_ONLY_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "client-nodejs",
2+
"name": "skytable",
33
"version": "1.0.0",
44
"main": "dist/index.js",
5-
"description": "A NodeJS client driver for Skytable",
5+
"description": "Offical NodeJS client driver for Skytable",
66
"repository": "https://github.com/skytable/client-nodejs.git",
77
"author": "Sayan Nandan <nandansayan@outlook.com>",
88
"license": "Apache-2.0",

0 commit comments

Comments
 (0)