Skip to content

Commit 4784508

Browse files
authored
chore: Fix release script (material-components#5613)
1 parent ca59aa1 commit 4784508

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ jobs:
5050
node scripts/verify-pkg-main.js
5151
- name: Create release tag
5252
run: |
53+
git reset --hard
5354
MDC_CURRENT_VERSION="v$(npm run version --silent)"
5455
git config --local user.email "action@github.com"
5556
git config --local user.name "GitHub Action"
56-
export changelog=$(npx conventional-changelog --preset angular)
57-
git tag -a "$MDC_CURRENT_VERSION" -m "$changelog"
57+
npx conventional-changelog --preset angular
58+
git tag "$MDC_CURRENT_VERSION"
5859
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
5960
git push origin "$MDC_CURRENT_VERSION"
6061
env:

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"publish": {
88
"ignoreChanges": [
99
"*.md",
10-
"*.increment1"
10+
"*.increment2"
1111
]
1212
}
1313
},

0 commit comments

Comments
 (0)