Skip to content

Commit

Permalink
setup for packages
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanshtalwar committed Aug 16, 2024
1 parent 7d352fc commit 2c9a333
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 316 deletions.
45 changes: 25 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
name: Release

name: Build and publish to github packages
on:
push:
branches:
- master

push:
branches:
- prod
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm i
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.11.0
registry-url: https://npm.pkg.github.com/
- name: Configure .npmrc
run: |
echo "@januscaler:registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PUBLISH_GITHUB_PACKAGES }}" >> .npmrc
- name: Install Dependencies
run: npm i
- name: Build Package
run: npm run build
- name: Publish Package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.PUBLISH_GITHUB_PACKAGES}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,5 @@ dist
.yarn/unplugged
.yarn/build-state.yml
.pnp.*
.npmrc
package-lock.json
22 changes: 16 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
{
"name": "nodejs-sdk",
"name": "@januscaler/nodejs-sdk",
"version": "1.0.0",
"description": "an intuitive nodejs sdk for januscaler services written on top of core-januscaler-js",
"keywords": [
"januscaler",
"webrtc",
"engine"
],
"repository": {
"type": "git",
"url": "git+https://github.com/januscaler/nodejs-sdk.git"
},
"bugs": {
"url": "https://github.com/januscaler/nodejs-sdk/issues"
},
"publishConfig": {
"@januscaler:registry": "https://npm.pkg.github.com"
},
"license": "MIT",
"author": "shivanshtalwar0 <shivanshtalwar0@gmail.com>",
"exports": {
Expand All @@ -30,8 +40,8 @@
},
"dependencies": {
"ioredis": "5.3.2",
"lodash": "^4.17.21",
"rxjs": "^7.8.1"
"lodash": "4.17.21",
"rxjs": "7.8.1"
},
"devDependencies": {
"@babel/core": "7.18.2",
Expand All @@ -49,10 +59,10 @@
"@semantic-release/github": "8.0.4",
"@semantic-release/npm": "9.0.1",
"@semantic-release/release-notes-generator": "10.0.3",
"@types/lodash": "^4.14.200",
"@types/node": "^20.8.9",
"@types/lodash": "4.14.200",
"@types/node": "20.8.9",
"lint-staged": "12.4.2",
"prettier": "^2.6.2",
"prettier": "2.6.2",
"rimraf": "3.0.2",
"rollup": "2.74.1",
"rollup-plugin-terser": "7.0.2",
Expand Down
91 changes: 0 additions & 91 deletions src/RediFlow.ts

This file was deleted.

95 changes: 0 additions & 95 deletions src/RediFlowConsumerGroup.ts

This file was deleted.

44 changes: 0 additions & 44 deletions src/RediFlowList.ts

This file was deleted.

56 changes: 0 additions & 56 deletions src/RediFlowStream.ts

This file was deleted.

Loading

0 comments on commit 2c9a333

Please sign in to comment.