From 89eaa7d95e79c52a5b8992256859cf2848d37dc2 Mon Sep 17 00:00:00 2001 From: Jonathon Herbert Date: Mon, 13 Nov 2023 16:18:42 +0000 Subject: [PATCH] Add npm release --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66f1cb2..0f2ddfc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,6 +49,10 @@ jobs: distribution: corretto java-version: 11 cache: sbt + - uses: actions/setup-node@v3 + with: + node-version-file: .nvmrc + registry-url: https://registry.npmjs.org - name: Release Production to Sonatype run: | VERSION=$(git describe --tags | cut -f2 -d"@") @@ -62,9 +66,10 @@ jobs: echo $PGP_SECRET | base64 --decode | gpg --batch --import export GPG_TTY=$(tty) echo "Releasing version $VERSION Sonatype as production" - yes | sbt -DRELEASE_TYPE=production "clean" "release cross release-version $VERSION with-defaults" + yes | sbt -DRELEASE_TYPE=production "clean" "release cross release-version $VERSION with-defaults" "project typescript" "releaseNpm $VERSION" env: PGP_SECRET: ${{ secrets.PGP_SECRET }} PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} \ No newline at end of file + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}