Skip to content

Commit a48b315

Browse files
committed
Fixing commit on bump
1 parent 492d0dd commit a48b315

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: ${{ github.actor != 'github-actions[bot]' }}
1515
runs-on: ubuntu-latest
1616
permissions:
17-
contents: write
17+
contents: read
1818
id-token: write
1919
steps:
2020
- name: Check out repo
@@ -100,7 +100,6 @@ jobs:
100100
run: npm version "${{ steps.version.outputs.next_version }}" --no-git-tag-version
101101

102102
- name: Sync SDK version constant
103-
id: sync_version
104103
env:
105104
NEXT_VERSION: ${{ steps.version.outputs.next_version }}
106105
run: |
@@ -120,20 +119,6 @@ jobs:
120119
fs.writeFileSync(path, updated);
121120
}
122121
NODE
123-
if git diff --quiet -- package.json package-lock.json src/version.ts; then
124-
echo "changed=false" >> "$GITHUB_OUTPUT"
125-
else
126-
echo "changed=true" >> "$GITHUB_OUTPUT"
127-
fi
128-
129-
- name: Commit version update
130-
if: ${{ steps.sync_version.outputs.changed == 'true' }}
131-
run: |
132-
git config user.name "github-actions[bot]"
133-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
134-
git add package.json package-lock.json src/version.ts
135-
git commit -m "chore(release): bump JS SDK to ${{ steps.version.outputs.next_version }}"
136-
git push origin "HEAD:${GITHUB_REF_NAME}"
137122
138123
- name: Build
139124
if: ${{ steps.version.outputs.publish == 'true' }}

0 commit comments

Comments
 (0)