Skip to content

Commit

Permalink
Ensure the releases are using the correct git hash to release from (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmandM authored May 15, 2024
1 parent fac604d commit 5515660
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
contents: write
outputs:
npm_package_version: ${{ steps.update_version.outputs.version_number }}
release_git_sha: ${{ steps.update_version.outputs.release_git_sha }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -66,6 +67,7 @@ jobs:
echo "Created version ${new_version}"
git push && git push --tags
echo "version_number=$new_version" >> $GITHUB_OUTPUT
echo "release_git_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- id: pack_tar
run: |
Expand All @@ -86,6 +88,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.create-release.outputs.release_git_sha }}
# setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
Expand All @@ -107,6 +111,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.create-release.outputs.release_git_sha }}
- uses: actions/setup-node@v4
with:
registry-url: https://npm.pkg.github.com/
Expand Down

0 comments on commit 5515660

Please sign in to comment.