-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from daimor/master
Support for filter
- Loading branch information
Showing
7 changed files
with
48 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
# os: [ubuntu-latest, windows-latest, macOS-latest] | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- name: Set an output | ||
id: set-version | ||
|
@@ -46,18 +46,14 @@ jobs: | |
echo $VERSION > .version | ||
echo $NAME > .name | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 14 | ||
node-version: 20 | ||
- run: npm install | ||
- name: lint | ||
if: runner.os == 'Linux' | ||
run: npm run lint | ||
- run: npm run compile | ||
- name: npm test | ||
uses: GabrielBB/[email protected] | ||
with: | ||
run: npm run test | ||
- name: Build package | ||
if: runner.os == 'Linux' | ||
run: | | ||
|
@@ -79,7 +75,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: meta | ||
path: . | ||
|
@@ -90,48 +86,35 @@ jobs: | |
set -x | ||
echo ::set-output name=version::`cat .version` | ||
echo ::set-output name=name::`cat .name` | ||
- uses: actions/download-artifact@v2 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ steps.set-version.outputs.name }}.vsix | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
if: runner.os == 'Linux' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ steps.set-version.outputs.version }} | ||
release_name: v${{ steps.set-version.outputs.version }} | ||
prerelease: ${{ github.event_name != 'release' }} | ||
body: | | ||
Changes in this release | ||
${{ steps.set-version.outputs.changelog }} | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
uses: softprops/action-gh-release@v2 | ||
if: runner.os == 'Linux' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ${{ steps.set-version.outputs.name }}.vsix | ||
asset_name: ${{ steps.set-version.outputs.name }}.vsix | ||
asset_content_type: application/zip | ||
tag_name: v${{ steps.set-version.outputs.version }} | ||
prerelease: ${{ github.event_name != 'release' }} | ||
files: ${{ steps.set-version.outputs.name }}.vsix | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
publish: | ||
if: github.event_name == 'release' | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: master | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/download-artifact@v2 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: meta | ||
path: . | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 14 | ||
- name: Prepare build | ||
|
@@ -155,15 +138,15 @@ jobs: | |
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
uses: softprops/action-gh-release@v2 | ||
if: runner.os == 'Linux' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ${{ steps.set-version.outputs.name }}.vsix | ||
asset_name: ${{ steps.set-version.outputs.name }}.vsix | ||
asset_content_type: application/zip | ||
tag_name: v${{ steps.set-version.outputs.version }} | ||
prerelease: ${{ github.event_name != 'release' }} | ||
files: ${{ steps.set-version.outputs.name }}.vsix | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish to VSCode Marketplace | ||
run: | | ||
[ -n "${{ secrets.VSCE_TOKEN }}" ] && \ | ||
|
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
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