Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions jenkins_files/common.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env groovy

def withNvmVer(Closure body) {
withNvm("v10.14.2", "npmrcFile") {
withYvm("v1.15.2") {
body()
}
}
}

return this
41 changes: 41 additions & 0 deletions jenkins_files/publish.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env groovy

@Library('SFE-RTC-pipeline') _

node(params.JENKINS_NODE_LABEL) {
cleanWs()
checkout scm

def common = load("jenkins_files/common.groovy")
def tagParam = params.VERSION_TAG ? "--tag ${params.VERSION_TAG}" : ""

try {
common.withNvmVer {
stage("Install") {
sh "yarn install --frozen-lockfile"
}
stage("Step version") {
sh "yarn run step-version set ${tagParam}"
}
stage("Build") {
sh "yarn build"
}
stage("Unit Test") {
sh "yarn test"
}

stage("Publish") {
sh "yarn run step-version tag ${tagParam}"

sh "yarn run env | grep registry"
sh "yarn publish --non-interactive --verbose"

withGitCredentials("githubaccess") {
sh "git push --tags"
}
}
}
} finally {
cleanWs()
}
}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "comlink",
"version": "4.3.0-symphony.1",
"name": "@symphony/comlink",
"version": "1.0.0-automatic",
"description": "Comlink makes WebWorkers enjoyable",
"main": "dist/umd/comlink.js",
"module": "dist/esm/comlink.mjs",
Expand All @@ -14,7 +14,8 @@
"test": "npm run fmt_test && npm run build && npm run test:types && npm run test:unit",
"fmt": "prettier --write './*.{mjs,js,ts,md,json,html}' './{src,docs,tests}/{,**/}*.{mjs,js,ts,md,json,html}'",
"fmt_test": "test $(prettier -l './*.{mjs,js,ts,md,json,html}' './{src,docs,tests}/{**/,}*.{mjs,js,ts,md,json,html}' | wc -l) -eq 0",
"watchtest": "CHROME_ONLY=1 karma start --no-single-run"
"watchtest": "CHROME_ONLY=1 karma start --no-single-run",
"step-version": "step-version"
},
"husky": {
"hooks": {
Expand All @@ -31,6 +32,7 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@symphony/rtc-builder": "~2.0.0",
"chai": "4.2.0",
"conditional-type-checks": "1.0.5",
"husky": "4.2.5",
Expand Down
Loading