Skip to content

Commit

Permalink
Test NPM release
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert committed Nov 13, 2023
1 parent 89eaa7d commit 70a906f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Release Sonatype

on:
push:
branches:
- 'jsh/add-npm-release'
release:
types: [published]

Expand Down Expand Up @@ -55,7 +58,7 @@ jobs:
registry-url: https://registry.npmjs.org
- name: Release Production to Sonatype
run: |
VERSION=$(git describe --tags | cut -f2 -d"@")
VERSION=4.0.0-beta.0
if [[ ${VERSION:0:1} == "v" ]] ; then
VERSION=${VERSION:1}
fi
Expand All @@ -66,7 +69,7 @@ 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" "project typescript" "releaseNpm $VERSION"
yes | sbt -DRELEASE_TYPE=production "clean" "project typescript" "releaseNpm $VERSION"
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
Expand Down

0 comments on commit 70a906f

Please sign in to comment.