-
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.
- Loading branch information
1 parent
73e73b8
commit d79a904
Showing
2 changed files
with
41 additions
and
39 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 |
---|---|---|
|
@@ -24,42 +24,41 @@ jobs: | |
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
- run: npm ci | ||
- run: xvfb-run -a npm test | ||
- name: Install deps | ||
run: npm ci | ||
- name: Run Tests | ||
run: xvfb-run -a npm test | ||
if: runner.os == 'Linux' | ||
- run: npm test | ||
- name: Run Tests | ||
run: npm test | ||
if: runner.os != 'Linux' | ||
- run: | | ||
git status -s | ||
- name: Package | ||
if: success() && matrix.os == 'ubuntu-latest' | ||
# - 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() && 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 }} | ||
run: | | ||
npm run package ${RELEASE_TYPE} | ||
echo "packageFile=$(ls *.vsix)" >> $GITHUB_ENV | ||
env: | ||
RELEASE_TYPE: ${{ inputs.releaseType }} | ||
- name: Publish | ||
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 }} |