forked from KreativJos/csharpextensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added release workflow (KreativJos#74)
Added - Manual workflow - Package script - Package step in pipeline - Build step in tests workflow - Yarn compile - Completed release workflow Fixed - Renamed deploy script to publish - Workflow edited to push @ test branch - Release workflow dependency - eslint line end unix - Fixed eslint errors - Updated typescript-eslint parser and plugin Co-authored-by: Jos Wagenmakers <[email protected]> Co-authored-by: Sante Barbuto <[email protected]>
- Loading branch information
1 parent
44928ab
commit a8951ce
Showing
9 changed files
with
272 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,6 @@ | |
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain | ||
|
||
*.js text eol=lf | ||
*.ts text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
env: | ||
NODE_VERSION: '16' | ||
EXTENSION_OUTPUT_FILE: 'csharpextensions.vsix' | ||
|
||
jobs: | ||
update: | ||
name: Update Changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
|
||
- name: Update Changelog | ||
uses: stefanzweifel/changelog-updater-action@v1 | ||
with: | ||
release-notes: ${{ github.event.release.body }} | ||
latest-version: ${{ github.event.release.name }} | ||
|
||
- name: Commit updated CHANGELOG | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
branch: main | ||
commit_message: Update CHANGELOG | ||
file_pattern: CHANGELOG.md | ||
|
||
prepare: | ||
name: Prepare | ||
runs-on: ubuntu-latest | ||
needs: update | ||
if: "success()" | ||
steps: | ||
- name: Prepare build | ||
uses: DerYeger/yarn-setup-action@master | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
package: | ||
name: Package | ||
runs-on: ubuntu-latest | ||
needs: prepare | ||
if: "success()" | ||
steps: | ||
- name: Prepare Package | ||
uses: DerYeger/yarn-setup-action@master | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- name: Yarn package | ||
run: yarn package -o ${{ env.EXTENSION_OUTPUT_FILE }} | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ env.EXTENSION_OUTPUT_FILE }} | ||
path: ${{ env.EXTENSION_OUTPUT_FILE }} | ||
retention-days: 30 | ||
- name: Publish Patch | ||
run: yarn publish --patch | ||
env: | ||
VSCE_PAT: ${{ secrets.VSCE_PAT }} | ||
if: "contains(github.event.release.body, 'Fixed')" | ||
- name: Publish Minor | ||
run: yarn publish --minor | ||
env: | ||
VSCE_PAT: ${{ secrets.VSCE_PAT }} | ||
if: "contains(github.event.release.body, 'Added')" | ||
- name: Push tags | ||
run: git push --tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.