diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml new file mode 100644 index 0000000..800d34d --- /dev/null +++ b/.github/workflows/publish-npm.yml @@ -0,0 +1,25 @@ +name: Publish NPM library to Github Packages +on: + workflow_dispatch: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 16 + registry-url: https://npm.pkg.github.com/ + - run: npm ci + working-directory: ./packages/runner-ts + - run: npm build + working-directory: ./packages/runner-ts + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + working-directory: ./packages/runner-ts diff --git a/orchestrator/src/main/kotlin/util/Log.kt b/orchestrator/src/main/kotlin/util/Log.kt index e554cc7..8560d7c 100644 --- a/orchestrator/src/main/kotlin/util/Log.kt +++ b/orchestrator/src/main/kotlin/util/Log.kt @@ -55,8 +55,6 @@ class Log private constructor(header: Boolean = true) { synchronized(System.out) { print(builder) } } - - Runtime.getRuntime().addShutdownHook(Thread { info("The JVM is shutting down.") }) } /** diff --git a/packages/file-utils-ts/package-lock.json b/packages/file-utils-ts/package-lock.json index a8bad20..579414d 100644 --- a/packages/file-utils-ts/package-lock.json +++ b/packages/file-utils-ts/package-lock.json @@ -11,8 +11,8 @@ "dependencies": { "@rdfjs/formats": "^4.0.0", "@rdfjs/serializer-turtle": "^1.1.3", - "jvm-runner-ts": "file:../runner-ts", "rdf-ext": "^2.5.2", + "rdfc": "file:../runner-ts", "shacl-engine": "^1.0.0" }, "devDependencies": { @@ -57,7 +57,7 @@ } }, "../runner-ts": { - "name": "jvm-runner-ts", + "name": "rdfc", "version": "0.0.1", "license": "MIT", "dependencies": { @@ -5742,10 +5742,6 @@ "node": ">=12" } }, - "node_modules/jvm-runner-ts": { - "resolved": "../runner-ts", - "link": true - }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", @@ -6863,6 +6859,10 @@ "entities": "^4.4.0" } }, + "node_modules/rdfc": { + "resolved": "../runner-ts", + "link": true + }, "node_modules/rdfxml-streaming-parser": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/rdfxml-streaming-parser/-/rdfxml-streaming-parser-2.4.0.tgz", diff --git a/packages/file-utils-ts/package.json b/packages/file-utils-ts/package.json index 26cc99e..9deac56 100644 --- a/packages/file-utils-ts/package.json +++ b/packages/file-utils-ts/package.json @@ -37,7 +37,7 @@ "dependencies": { "@rdfjs/formats": "^4.0.0", "@rdfjs/serializer-turtle": "^1.1.3", - "jvm-runner-ts": "file:../runner-ts", + "rdfc": "file:../runner-ts", "rdf-ext": "^2.5.2", "shacl-engine": "^1.0.0" } diff --git a/packages/file-utils-ts/src/FileReader.ts b/packages/file-utils-ts/src/FileReader.ts index 9a57103..fb334ce 100644 --- a/packages/file-utils-ts/src/FileReader.ts +++ b/packages/file-utils-ts/src/FileReader.ts @@ -1,4 +1,4 @@ -import { Processor, Log } from "jvm-runner-ts"; +import { Processor, Log } from "rdfc"; import * as fs from "node:fs"; export default class FileReader extends Processor { diff --git a/packages/file-utils-ts/src/FileWriter.ts b/packages/file-utils-ts/src/FileWriter.ts index 4cc082f..0a64b61 100644 --- a/packages/file-utils-ts/src/FileWriter.ts +++ b/packages/file-utils-ts/src/FileWriter.ts @@ -1,4 +1,4 @@ -import { Processor, Log } from "jvm-runner-ts"; +import { Processor, Log } from "rdfc"; import * as fs from "node:fs"; export default class FileWriter extends Processor { diff --git a/packages/runner-ts/package-lock.json b/packages/runner-ts/package-lock.json index 04af241..0835bbd 100644 --- a/packages/runner-ts/package-lock.json +++ b/packages/runner-ts/package-lock.json @@ -1,11 +1,11 @@ { - "name": "jvm-runner-ts", + "name": "rdfc", "version": "0.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "jvm-runner-ts", + "name": "rdfc", "version": "0.0.1", "license": "MIT", "dependencies": { diff --git a/packages/runner-ts/package.json b/packages/runner-ts/package.json index faccd90..8f9800b 100644 --- a/packages/runner-ts/package.json +++ b/packages/runner-ts/package.json @@ -1,5 +1,5 @@ { - "name": "jvm-runner-ts", + "name": "rdfc", "version": "0.0.1", "description": "Bindings and utilities to create and run TypeScript processors in the JVM Runner.", "scripts": { diff --git a/packages/shacl-validator-ts/package-lock.json b/packages/shacl-validator-ts/package-lock.json index a8bad20..579414d 100644 --- a/packages/shacl-validator-ts/package-lock.json +++ b/packages/shacl-validator-ts/package-lock.json @@ -11,8 +11,8 @@ "dependencies": { "@rdfjs/formats": "^4.0.0", "@rdfjs/serializer-turtle": "^1.1.3", - "jvm-runner-ts": "file:../runner-ts", "rdf-ext": "^2.5.2", + "rdfc": "file:../runner-ts", "shacl-engine": "^1.0.0" }, "devDependencies": { @@ -57,7 +57,7 @@ } }, "../runner-ts": { - "name": "jvm-runner-ts", + "name": "rdfc", "version": "0.0.1", "license": "MIT", "dependencies": { @@ -5742,10 +5742,6 @@ "node": ">=12" } }, - "node_modules/jvm-runner-ts": { - "resolved": "../runner-ts", - "link": true - }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", @@ -6863,6 +6859,10 @@ "entities": "^4.4.0" } }, + "node_modules/rdfc": { + "resolved": "../runner-ts", + "link": true + }, "node_modules/rdfxml-streaming-parser": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/rdfxml-streaming-parser/-/rdfxml-streaming-parser-2.4.0.tgz", diff --git a/packages/shacl-validator-ts/package.json b/packages/shacl-validator-ts/package.json index 26cc99e..9deac56 100644 --- a/packages/shacl-validator-ts/package.json +++ b/packages/shacl-validator-ts/package.json @@ -37,7 +37,7 @@ "dependencies": { "@rdfjs/formats": "^4.0.0", "@rdfjs/serializer-turtle": "^1.1.3", - "jvm-runner-ts": "file:../runner-ts", + "rdfc": "file:../runner-ts", "rdf-ext": "^2.5.2", "shacl-engine": "^1.0.0" } diff --git a/packages/shacl-validator-ts/src/index.ts b/packages/shacl-validator-ts/src/index.ts index d6944fb..e5229b6 100644 --- a/packages/shacl-validator-ts/src/index.ts +++ b/packages/shacl-validator-ts/src/index.ts @@ -1,4 +1,4 @@ -import { Arguments, Log, Processor } from "jvm-runner-ts"; +import { Arguments, Log, Processor } from "rdfc"; import rdf, { PrefixMapFactory } from "rdf-ext"; import Serializer from "@rdfjs/serializer-turtle"; import formatsPretty from "@rdfjs/formats/pretty.js";