Skip to content

Commit 75dda6e

Browse files
authored
build: Fix publishing errors (#1911)
1 parent 67044a0 commit 75dda6e

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
node-version: 'lts/*'
3434
cache: 'npm'
3535

36-
- run: npm install
3736
- run: node ./scripts/update-version.js alpha ${{github.run_number}}
37+
- run: npm install
3838
- run: npm run build
3939
- run: npm pack
4040

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"license": "MPL-2.0",
1919
"repository": {
2020
"type": "git",
21-
"url": "https://github.com/coderline/alphaTab"
21+
"url": "git+https://github.com/coderline/alphaTab.git"
2222
},
2323
"main": "dist/alphaTab.js",
2424
"module": "dist/alphaTab.mjs",

scripts/update-kotlin-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ console.log(`Updating Version to ${version}`);
1818
const buildFile = `${__dirname}/../src.kotlin/alphaTab/android/build.gradle.kts`;
1919

2020
let propsSource = fs.readFileSync(buildFile, 'utf-8');
21-
propsSource = propsSource.replace(/libVersion\s*=.*/g, `libVersion = "${version}"`);
21+
propsSource = propsSource.replace(/libVersion\s*= \".*/g, `libVersion = "${version}"`);
2222
fs.writeFileSync(buildFile, propsSource);

src.kotlin/alphaTab/android/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ group = "net.alphatab"
6161
version = libVersion
6262

6363
val javaVersion = JavaVersion.VERSION_17;
64-
val jvmTarget = 17
64+
var jvmTarget = 17
6565
android {
6666
namespace = project.group.toString()
6767
compileSdk = 34
@@ -132,11 +132,7 @@ dependencies {
132132
var sonatypeSigningKeyId = ""
133133
var sonatypeSigningPassword = ""
134134
var sonatypeSigningKey = ""
135-
var ossrhUsername = ""
136-
var ossrhPassword = ""
137135
var sonatypeStagingProfileId = ""
138-
loadSetting("OSSRH_USERNAME", "ossrhUsername") { ossrhUsername = it }
139-
loadSetting("OSSRH_PASSWORD", "ossrhPassword") { ossrhPassword = it }
140136
loadSetting("SONATYPE_STAGING_PROFILE_ID", "sonatypeStagingProfileId") {
141137
sonatypeStagingProfileId = it
142138
}

0 commit comments

Comments
 (0)