Skip to content

Commit

Permalink
Create changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
ascrazy committed Dec 31, 2024
1 parent 91d1b09 commit 3cace5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-bees-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"davinci-github-actions": major
---

Simplify the way yarn-install action ensures yarn.lock is unchanged after `yarn install`
5 changes: 3 additions & 2 deletions yarn-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ runs:
- name: Capture yarn.lock file checksum
id: yarn-lock-checksum
shell: bash
working-directory: ${{ inputs.path }}
run: |
echo "checksum=$(cksum yarn.lock)" >> $GITHUB_OUTPUT
echo "checksum=\"$(cksum yarn.lock)\"" >> $GITHUB_OUTPUT
- name: yarn install
shell: bash
Expand All @@ -156,4 +157,4 @@ runs:
shell: bash
working-directory: ${{ inputs.path }}
run: |
[ "${{ steps.yarn-lock-checksum.checksum }}" = "$(cksum yarn.lock)" ] || (echo 'yarn.lock changed after yarn install. Please make sure to commit yarn.lock changes.' && exit 1)
[ "${{ steps.yarn-lock-checksum.outputs.checksum }}" = "$(cksum yarn.lock)" ] || (echo 'yarn.lock changed after yarn install. Please make sure to commit yarn.lock changes.' && exit 1)

0 comments on commit 3cace5f

Please sign in to comment.