Skip to content

Commit

Permalink
fix(release): version numbering on NPM release
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed May 25, 2023
1 parent 30e0419 commit 31420f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ jobs:
- uses: DanySK/build-check-deploy-gradle-action@2.2.6
env:
STAGING_REPO_ID: ${{ needs.staging-repo.outputs.maven-central-repo-id }}
ENFORCE_VERSION: "${{ needs.staging-repo.outputs.next-version }}"
with:
build-command: true
check-command: true
Expand Down
6 changes: 4 additions & 2 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
var staging = "-PstagingRepositoryId=${process.env.STAGING_REPO_ID}"
var version = "-PforceVersion=${process.env.ENFORCE_VERSION}"

var publishCmd = `
./gradlew ${staging} releaseStagingRepositoryOnMavenCentral || exit 3
./gradlew ${staging} publishJsPackageToNpmjsRegistry || exit 4
./gradlew ${version} ${staging} releaseStagingRepositoryOnMavenCentral || exit 3
./gradlew ${version} ${staging} publishJsPackageToNpmjsRegistry || exit 4
`

var config = require('semantic-release-preconfigured-conventional-commits');
config.plugins.push(
[
Expand Down

0 comments on commit 31420f4

Please sign in to comment.