diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 410a9fb..95241e5 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -25,10 +25,9 @@ jobs: - name: Get package version from master branch before merge id: pre-merge-version run: | + cd core CORE_PRE_MERGE_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version') - RUST_PRE_MERGE_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version') echo "core_pre_merge_version=$CORE_PRE_MERGE_VERSION" >> "$GITHUB_ENV" - echo "rust_pre_merge_version=$RUST_PRE_MERGE_VERSION" >> "$GITHUB_ENV" - name: Checkout master branch at commit after merge uses: actions/checkout@v4 @@ -38,10 +37,9 @@ jobs: - name: Get package version from master branch after merge id: post-merge-version run: | + cd core CORE_POST_MERGE_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version') - RUST_POST_MERGE_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version') echo "core_post_merge_version=$CORE_POST_MERGE_VERSION" >> "$GITHUB_ENV" - echo "rust_post_merge_version=$RUST_POST_MERGE_VERSION" >> "$GITHUB_ENV" - name: Compare versions id: compare-versions diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index be3fdc7..3995e8f 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -93,6 +93,7 @@ jobs: - name: Get package version from master branch before merge id: pre-merge-version run: | + cd rust RUST_PRE_MERGE_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version') echo "rust_pre_merge_version=$RUST_PRE_MERGE_VERSION" >> "$GITHUB_ENV" @@ -104,6 +105,7 @@ jobs: - name: Get package version from master branch after merge id: post-merge-version run: | + cd rust RUST_POST_MERGE_VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[0].version') echo "rust_post_merge_version=$RUST_POST_MERGE_VERSION" >> "$GITHUB_ENV"