Skip to content

Commit 773c796

Browse files
committed
hackaround
1 parent b956eec commit 773c796

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ jobs:
5454

5555
- run: npm version ${{ github.event.inputs.release_type }}
5656

57-
- run: echo "versionTag=`npm version ${{ github.event.inputs.release_type }} -m "%s ${{ github.event.inputs.description }}"`" >> $GITHUB_ENV
57+
- run: echo "versionTag=$(npm version ${{ github.event.inputs.release_type }} -m "%s ${{ github.event.inputs.description }}")" >> $GITHUB_ENV
5858

59-
- run: git commit -am "chore: update version"
59+
# The error occurs because YAML is interpreting the -am flag as a nested mapping
60+
# We can fix this by using the | multi-line syntax for the command
61+
- run: |
62+
git commit -am "chore: update version"
6063
6164
- run: bun install
6265

0 commit comments

Comments
 (0)