Skip to content

Commit

Permalink
More publish workflow fixes: fetch-depth for version check and pass g… (
Browse files Browse the repository at this point in the history
  • Loading branch information
prashanDYDX authored Sep 9, 2024
1 parent 7ecbc2f commit 81b71cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
new_version: ${{ steps.check.outputs.new_version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2 # need current commit and previous commit
- id: check
run: |
currentVersion=$(grep '^version = ' build.gradle.kts | sed 's/version = //g' | tr -d '"')
Expand Down Expand Up @@ -62,6 +64,8 @@ jobs:

- name: Publish to Github Packages
run: ./gradlew publishJvmPublicationToGitHubPackagesRepository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-js:
name: Publish JS Package
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.10.1"
version = "1.10.2"

repositories {
google()
Expand Down
2 changes: 1 addition & 1 deletion v4_abacus.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'v4_abacus'
spec.version = '1.9.15'
spec.version = '1.10.2'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit 81b71cb

Please sign in to comment.