Skip to content

Commit

Permalink
Merge pull request #26 from TrustSource/npm_publish
Browse files Browse the repository at this point in the history
Npm publish
  • Loading branch information
jthDEV committed Sep 6, 2023
2 parents ab86e90 + bfd9c9d commit ffbfaf7
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Publish Package to npmjs

on: [push, pull_request]

jobs:
publish:

if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest

strategy:
matrix:
include:
- node-version: 16.x

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Install yarn
run: npm install --global yarn
- name: Install dependencies
run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## 3.2.2 - 2023-09-06

### Added
* Automatically publish releases from main branch


## 3.2.1 - 2023-08-14

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ts-node-client",
"description": "npm / node module to transfer dependency information to TrustSource server.",
"version": "3.2.1",
"version": "3.2.2",
"homepage": "https://app.trustsource.io/",
"author": {
"name": "Oleksandr Dmukhovskyi",
Expand Down

0 comments on commit ffbfaf7

Please sign in to comment.