Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
Changelog was not properly generated in CI pipeline
  • Loading branch information
PKief committed Jan 23, 2022
1 parent 00e6427 commit 6ed12b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -20,6 +20,8 @@ jobs:
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js ⚙️
uses: actions/setup-node@v2
with:
Expand All @@ -32,6 +34,7 @@ jobs:
run: |
git config --global user.name 'Philipp Kief'
git config --global user.email 'PKief@users.noreply.github.com'
git config --global push.followTags true
npm version ${{ env.VERSION_CHANGE }}
- name: Get version 🔍
run: |
Expand All @@ -40,7 +43,7 @@ jobs:
- name: Build ⚒️
run: vsce package
- name: Push tags 📌
run: git push --follow-tags
run: git push
- name: Release ${{ env.VERSION }} 🔆
uses: softprops/action-gh-release@v1
with:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -20,8 +20,9 @@
"preview": "ts-node ./src/scripts/preview",
"svgo": "svgo -i icons -o icons -q",
"test": "node ./out/test/runTest.js",
"changelog": "ts-node ./src/scripts/changelog/index",
"preversion": "npm run contributors && git add images/contributors.png && npm run preview && git add images/fileIcons.png && git add images/folderIcons.png",
"version": "ts-node ./src/scripts/changelog/index && git add CHANGELOG.md",
"version": "npm run changelog && git add CHANGELOG.md",
"vscode:prepublish": "npm run lint && npm run compile && npm run package-web"
},
"publisher": "PKief",
Expand Down
1 change: 1 addition & 0 deletions src/scripts/changelog/index.ts
Expand Up @@ -37,6 +37,7 @@ const getReleaseCommits = async (
return logResult.stdout
.split('\n')
.filter((message) => !new RegExp(config.blacklistPattern).test(message))
.filter((message) => !!message)
.map((message) => {
const data = message.split(separator);
return {
Expand Down

0 comments on commit 6ed12b6

Please sign in to comment.