Skip to content

Commit a0fe565

Browse files
committed
Update maven-publish action to build and run the current version
1 parent b742b2f commit a0fe565

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ jobs:
2323
server-id: github
2424
settings-path: ${{ github.workspace }}
2525

26-
- name: Build with Maven
27-
run: ./mvnw --batch-mode --no-transfer-progress package --file pom.xml
28-
2926
- name: Publish to GitHub Packages Apache Maven
3027
run: |
31-
./mvnw --batch-mode changesets:release
28+
./mvnw --batch-mode install
29+
./mvnw --batch-mode se.fortnox.changesets:changesets-maven-plugin:$(cat .changeset/VERSION):release
3230
./mvnw --batch-mode deploy -s $GITHUB_WORKSPACE/settings.xml
3331
env:
3432
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)