Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief committed Jan 23, 2022
1 parent 00e6427 commit b3f89de
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
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,30 +34,31 @@ jobs:
run: |
git config --global user.name 'Philipp Kief'
git config --global user.email '[email protected]'
git config --global push.followTags true
npm version ${{ env.VERSION_CHANGE }}
- name: Get version 🔍
run: |
NODE_VERSION=$(node -p -e "require('./package.json').version")
echo VERSION=$NODE_VERSION >> $GITHUB_ENV
- name: Build ⚒️
run: vsce package
# - name: Build ⚒️
# run: vsce package
- name: Push tags 📌
run: git push --follow-tags
- name: Release ${{ env.VERSION }} 🔆
uses: softprops/action-gh-release@v1
with:
files: material-icon-theme-${{ env.VERSION }}.vsix
tag_name: v${{ env.VERSION }}
name: Material Icon Theme v${{ env.VERSION }}
generate_release_notes: true
- name: Publish to Open VSX Registry 🌐
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
extensionFile: material-icon-theme-${{ env.VERSION }}.vsix
- name: Publish to Visual Studio Marketplace 🌐
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: material-icon-theme-${{ env.VERSION }}.vsix
run: git push
# - name: Release ${{ env.VERSION }} 🔆
# uses: softprops/action-gh-release@v1
# with:
# files: material-icon-theme-${{ env.VERSION }}.vsix
# tag_name: v${{ env.VERSION }}
# name: Material Icon Theme v${{ env.VERSION }}
# generate_release_notes: true
# - name: Publish to Open VSX Registry 🌐
# uses: HaaLeo/publish-vscode-extension@v1
# with:
# pat: ${{ secrets.OPEN_VSX_TOKEN }}
# extensionFile: material-icon-theme-${{ env.VERSION }}.vsix
# - name: Publish to Visual Studio Marketplace 🌐
# uses: HaaLeo/publish-vscode-extension@v1
# with:
# pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
# registryUrl: https://marketplace.visualstudio.com
# extensionFile: material-icon-theme-${{ env.VERSION }}.vsix
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 b3f89de

Please sign in to comment.