Skip to content

Commit

Permalink
Add simple beta script
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarciabnz committed Jan 17, 2024
1 parent 5f49dc2 commit 8c97039
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ jobs:
run: chmod +x ./gradlew
- name: Test
run: ./gradlew clean allTests

16 changes: 13 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Pull request
on: [pull_request]

jobs:
unit-test:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -13,7 +13,17 @@ jobs:
java-version: 17
distribution: temurin
cache: 'gradle'
- uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Change wrapper permission
run: chmod +x ./gradlew
- name: Test
run: ./gradlew clean allTests

- name: Pack
run: ./gradlew clean packJsPackage
- name: Publish beta to NPMJS
run:
chmod +x ./scripts/publish-beta.sh
./scripts/publish-beta.sh

7 changes: 7 additions & 0 deletions scripts/publish-beta.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set -ex

cd build/packages/js

npm version 0.1.0-beta.0

npm publish --tag beta

0 comments on commit 8c97039

Please sign in to comment.