-
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.
Merge pull request #4 from mmorlack/develop
update release.yml, LICENSE and package.json
- Loading branch information
Showing
5 changed files
with
99 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: CI | ||
on: | ||
- pull_request | ||
- push | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
- run: npm install | ||
- run: xvfb-run -a npm test | ||
if: runner.os == 'Linux' | ||
- run: npm test | ||
if: runner.os != 'Linux' |
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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
on: | ||
# push: | ||
# branches: | ||
# - main | ||
workflow_dispatch: | ||
inputs: | ||
releaseType: | ||
required: true | ||
default: 'minor' | ||
type: choice | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
|
||
jobs: | ||
test: | ||
|
@@ -22,8 +28,33 @@ jobs: | |
if: runner.os == 'Linux' | ||
- run: npm test | ||
if: runner.os != 'Linux' | ||
- name: Package | ||
if: success() && matrix.os == 'ubuntu-latest' | ||
run: | | ||
npm run package ${RELEASE_TYPE} | ||
echo "packageFile=$(ls *.vsix)" >> $GITHUB_ENV | ||
env: | ||
RELEASE_TYPE: ${{ inputs.releaseType }} | ||
- name: Publish | ||
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' | ||
run: npm run deploy | ||
if: success() && matrix.os == 'ubuntu-latest' | ||
run: | | ||
npm run publish -i ${VSIX_PATH} | ||
env: | ||
VSCE_PAT: ${{ secrets.VSCE_PAT }} | ||
VSIX_PATH: ${{ env.packageFile }} | ||
- name: Push tag | ||
if: success() && matrix.os == 'ubuntu-latest' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
git push --tags | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: softprops/action-gh-release@v2 | ||
if: success() && matrix.os == 'ubuntu-latest' | ||
with: | ||
files: | | ||
${{ env.packageFile }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Executing prepublish script 'npm run vscode:prepublish'... | ||
|
||
> [email protected] vscode:prepublish | ||
> npm run compile | ||
|
||
|
||
> [email protected] compile | ||
> tsc -p ./ | ||
|
||
INFO Files included in the VSIX: | ||
projects-browser-0.1.0.vsix | ||
├─ [Content_Types].xml | ||
├─ extension.vsixmanifest | ||
└─ extension/ | ||
├─ CHANGELOG.md [0.24 KB] | ||
├─ LICENSE.txt | ||
├─ README.md [2.54 KB] | ||
├─ package.json [5.97 KB] | ||
├─ test.txt [0.17 KB] | ||
├─ .github/ | ||
│ └─ workflows/ | ||
│ ├─ ci.yml [0.46 KB] | ||
│ └─ release.yml [0.86 KB] | ||
├─ images/ | ||
│ └─ icon.png [22.82 KB] | ||
└─ out/ | ||
├─ common.js [2.67 KB] | ||
├─ extension.js [4.87 KB] | ||
├─ filterview.js [1.89 KB] | ||
├─ interfaces.js [0.11 KB] | ||
├─ projectsfavoritesprovider.js [2.17 KB] | ||
├─ projectsprovider.js [2.91 KB] | ||
├─ utils.js [4.52 KB] | ||
└─ test/ | ||
└─ extension.test.js [1.61 KB] | ||
|
||
DONE Packaged: /home/matteo/coding/projects-browser/projects-browser-0.1.0.vsix (18 files, 21.02 KB) |