Skip to content

Commit

Permalink
v1.3.0: Added GH workflow to automate publishing of the package
Browse files Browse the repository at this point in the history
  • Loading branch information
achhayapathak committed Jun 23, 2024
1 parent 36f3e72 commit f48b26d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish-to-npm

on:
pull_request:
branches: [main]
types:
- closed

push:
branches: [main]

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install Dependencies
run: npm ci

- name: Create a build
run: npm link

- name: Run the server
run: tt-host

- name: Run the client
run: tt-join

- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "termtalk",
"version": "1.2.0",
"version": "1.3.0",
"description": "Npm package to securely chat with your friend through your CLI.",
"scripts": {
"host": "node ./server/server.js",
Expand Down

0 comments on commit f48b26d

Please sign in to comment.