Skip to content

Commit a9aab2a

Browse files
author
mreuvers
committed
Finishing touches.
Add npm publish task. Make the peerDependencies depend on 2.0.x. Last touch to readme.
1 parent 43f4ceb commit a9aab2a

File tree

5 files changed

+42
-7
lines changed

5 files changed

+42
-7
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to NPM
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-20.04
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
- name: Setup Node
12+
uses: actions/setup-node@v2
13+
with:
14+
node-version: '16.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- name: Install dependencies, build and test. 🔧
17+
run: ./build.sh
18+
- name: Publish typescript-logging (core) 📦
19+
run: |
20+
cd core
21+
npm publish
22+
- name: Publish typescript-logging (category-style) 📦
23+
run: |
24+
cd category-style
25+
npm publish
26+
- name: Publish typescript-logging (log4ts-style) 📦
27+
run: |
28+
cd log4ts-style
29+
npm publish
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# TypeScript Logging
22

3-
TypeScript logging can be used to add logging to your web or node project. There are two different flavors available to
4-
use. Please visit either of these below and pick the one you prefer.
3+
TypeScript logging can be used to add logging to your web or node project.
4+
5+
**_Version 2 of typescript-logging has been released, this version has been written from scratch and is
6+
not compatible with version 1 (see migration)._**
7+
8+
There are two different flavors available to use. Please visit the documentation below and pick the one you prefer.
59

610
* The [typescript-logging-category-style](./category-style/README.MD) flavor.
711
* The [typescript-logging-log4ts-style](./log4ts-style/README.MD) flavor.
@@ -188,8 +192,8 @@ npm run build # Run inside respective test-integration project. Builds test we
188192

189193
## Bugs
190194

191-
If you encounter a bug please log it in the issue tracker of this repository and make sure what flavor (style) you are
192-
using.
195+
If you encounter a bug please log it in the issue tracker of this repository and make sure to specify what flavor
196+
(style) you are using.
193197

194198
## Contributing
195199

category-style/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"homepage": "https://github.com/vauxite-org/typescript-logging/#readme",
4646
"peerDependencies": {
47-
"typescript-logging": "2.0.0"
47+
"typescript-logging": "2.0.x"
4848
},
4949
"devDependencies": {
5050
"@rollup/plugin-commonjs": "21.0.1",

core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "typescript-logging",
33
"version": "2.0.0",
4-
"description": "TypeScript Logging core written in and to be used by TypeScript (this is the core project, you want to use a flavor instead).",
4+
"description": "TypeScript Logging core written in and to be used by TypeScript (this is the core project, you need to install a flavor too).",
55
"main": "dist/bundle/typescript-logging.js",
66
"module": "dist/bundle/typescript-logging.esm.js",
77
"typings": "dist/bundle/src/typescript/main/typescript-logging.d.ts",

log4ts-style/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
"homepage": "https://github.com/vauxite-org/typescript-logging/#readme",
4444
"peerDependencies": {
45-
"typescript-logging": "2.0.0"
45+
"typescript-logging": "2.0.x"
4646
},
4747
"devDependencies": {
4848
"@rollup/plugin-commonjs": "21.0.1",

0 commit comments

Comments
 (0)