Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
fix: npm build before deploying to maven
Browse files Browse the repository at this point in the history
  • Loading branch information
braddialpad committed Sep 22, 2022
1 parent 0be0575 commit 5abba9b
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
release-web:
concurrency: ${{ github.workflow }}-${{ github.ref }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Check out branch
Expand All @@ -21,6 +24,11 @@ jobs:
with:
node-version: '16.x'

- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: parse branch from ref
id: branch
run: echo ::set-output name=BRANCH::${GITHUB_REF/refs\/heads\//}
Expand All @@ -40,24 +48,13 @@ jobs:
if: ${{ github.ref != 'refs/heads/production' }}
run: npm publish --tag ${{ steps.branch.outputs.BRANCH }}

- name: Github Release
- name: Deploy production - Maven
if: ${{ github.ref == 'refs/heads/production' }}
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --extends ./release-ci.config.js

release-android:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Publish package
if: ${{ github.ref == 'refs/heads/production' }}
run: mvn --batch-mode deploy
- name: Github Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --extends ./release-ci.config.js

0 comments on commit 5abba9b

Please sign in to comment.