Skip to content

Commit 2217ece

Browse files
committed
Fix cd if no changes to JS/TS
1 parent 184ad57 commit 2217ece

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/cd.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,15 @@ jobs:
4242
name: dist
4343
path: dist
4444

45-
- uses: aws-actions/configure-aws-credentials@v4
46-
with:
47-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
48-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
49-
aws-region: us-east-1
50-
5145
- uses: git-actions/set-user@v1
46+
5247
- run: |
53-
git add dist
54-
git commit -m v${{ github.event.inputs.version }}
55-
git tag v${{ github.event.inputs.version }}
56-
git push origin v${{ github.event.inputs.version }} main
48+
if ! git diff --exit-code; then
49+
git add dist
50+
git commit -m v${{ github.event.inputs.version }}
51+
git tag v${{ github.event.inputs.version }}
52+
git push origin v${{ github.event.inputs.version }} main
53+
fi
5754
5855
- uses: softprops/action-gh-release@v1
5956
with:

0 commit comments

Comments
 (0)