Compare commits
No commits in common. "main" and "2023.09.02" have entirely different histories.
main
...
2023.09.02
5 changed files with 32 additions and 8 deletions
26
.github/workflows/npm-publish.yml
vendored
Normal file
26
.github/workflows/npm-publish.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Publish to NPM
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
jobs:
|
||||||
|
Publish-NPM:
|
||||||
|
runs-on: node1
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '16.x'
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
scope: '@thundernetworkrad'
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm i
|
||||||
|
- name: Build
|
||||||
|
run: npm run build
|
||||||
|
- name: Publish package on NPM 📦
|
||||||
|
run: npm publish --access public
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
REGISTRY1: 'registry.npmjs.org'
|
||||||
|
REGISTRY2: 'registry=https://registry.npmjs.org/'
|
2
.npmrc
Normal file
2
.npmrc
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
//${REGISTRY1}/:_authToken=${NODE_AUTH_TOKEN}
|
||||||
|
${REGISTRY2}
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
Here are the changelogs since the first package version.
|
Here are the changelogs since the first package version.
|
||||||
|
|
||||||
## 2023.09.03
|
|
||||||
|
|
||||||
- Cleaned up some files
|
|
||||||
|
|
||||||
## 2023.09.02
|
## 2023.09.02
|
||||||
|
|
||||||
- Migrated to CHANGELOGS.md
|
- Migrated to CHANGELOGS.md
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "node-cout",
|
"name": "node-cout",
|
||||||
"version": "2023.09.03",
|
"version": "2023.09.02",
|
||||||
"description": "Standard output module for JavaScript / TypeScript",
|
"description": "Standard output module for JavaScript / TypeScript",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"types": "build/index.d.ts",
|
"types": "build/index.d.ts",
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
"await",
|
"await",
|
||||||
"log"
|
"log"
|
||||||
],
|
],
|
||||||
"author": "Thunder Network RaD | Killer Boss Original, Mambuco",
|
"author": "Thunder Network RaD | Killer Boss Original",
|
||||||
"license": "Mozilla Public License 2.0",
|
"license": "Mozilla Public License 2.0",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://source.thundernetwork.org/ThunderNetworkRaD/node-cout/issues"
|
"url": "https://source.thundernetwork.org/ThunderNetworkRaD/node-cout/issues"
|
||||||
|
|
|
@ -71,12 +71,12 @@ export default class cout {
|
||||||
}
|
}
|
||||||
if (this.save) {
|
if (this.save) {
|
||||||
string.split("\n").forEach((line) => {
|
string.split("\n").forEach((line) => {
|
||||||
log(`${this.emoji ? emoji : ''}[${time} ${type}] | ${line}`);
|
log(`${this.emoji && emoji}[${time} ${type}] | ${line}`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
stringc.split("\n").forEach((line) => {
|
stringc.split("\n").forEach((line) => {
|
||||||
console.log(`${this.emoji ? emojic : ''}[${timec} ${typec}] | ${line}`);
|
console.log(`${this.emoji && emojic}[${timec} ${typec}] | ${line}`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue