Skip to content

Commit

Permalink
renaming and optional variable
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomociti committed Sep 26, 2024
1 parent bb137fe commit 805f370
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion cli/lib/commands/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default runner.create<PublishRunOptions>({
variable.set('publish-graph-store-password', publishStore?.password || process.env.PUBLISH_GRAPH_STORE_PASSWORD)
variable.set('metadata', $rdf.dataset())
variable.set('shapesPath', path.resolve(__dirname, `../../${profile}.ttl`))
variable.set('shapesVersion', 'v0.2.2')

if (cubeCreatorVersion) {
variable.set('cubeCreatorVersion', cubeCreatorVersion)
Expand Down
2 changes: 1 addition & 1 deletion cli/lib/replace.ts → cli/lib/replaceShapesVersion.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Quad } from '@rdfjs/types'
import { Context } from 'barnard59-core'

export default function replace(this: Context, version: string) {
export default function replaceShapesVersion(this: Context, version = 'v0.2.2') {
const prefix = 'https://cube.link/latest/'
const replacement = `https://cube.link/${version}/`
const { env } = this
Expand Down
7 changes: 6 additions & 1 deletion cli/pipelines/publish.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
:name "executionUrl" ;
:required false
] ;
:variable
[
:name "shapesVersion" ;
:required false
] ;
] ;
:steps
[
Expand Down Expand Up @@ -112,7 +117,7 @@
code:implementedBy
[
a code:EcmaScript ;
code:link <file:../lib/replace#default>
code:link <file:../lib/replaceShapesVersion#default>
] ;
code:arguments ( 'shapesVersion'^^:VariableName )
.
Expand Down

0 comments on commit 805f370

Please sign in to comment.