Skip to content

Commit

Permalink
refactor(runner-ts): renamed and include publish flow
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspots committed Sep 15, 2024
1 parent 79df52b commit dfbedb5
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 22 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions orchestrator/src/main/kotlin/util/Log.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.") })
}

/**
Expand Down
12 changes: 6 additions & 6 deletions packages/file-utils-ts/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 packages/file-utils-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/file-utils-ts/src/FileReader.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/file-utils-ts/src/FileWriter.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions packages/runner-ts/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 packages/runner-ts/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
12 changes: 6 additions & 6 deletions packages/shacl-validator-ts/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 packages/shacl-validator-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/shacl-validator-ts/src/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit dfbedb5

Please sign in to comment.