-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:env0/vscode-env0 into fix-default-b…
…ranch-doesn't-show-environments
- Loading branch information
Showing
15 changed files
with
17,273 additions
and
5,437 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,70 @@ | ||
name: Bump Version, Create Tag, and Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
versionBump: | ||
description: 'Version bump type' | ||
required: true | ||
default: 'minor' | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
env: | ||
MARKET_TOKEN: ${{ secrets.MARKETPLACE_ACCESS_TOKEN }} | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
- name: Upgrade package version and create tag | ||
run: npm version ${{ github.event.inputs.versionBump }} -m "Upgrade to %s" | ||
|
||
- name: Push changes | ||
run: | | ||
git push | ||
git push --tags | ||
- name: Get version and name from package.json | ||
id: package_info | ||
run: | | ||
echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV | ||
echo "name=$(node -p "require('./package.json').name")" >> $GITHUB_ENV | ||
- name: Package VS Code extension | ||
run: npx vsce package | ||
|
||
- name: Create GitHub release and upload VSIX | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: '${{ env.name }}-${{ env.version }}.vsix' | ||
tag_name: v${{ env.version }} | ||
name: Release ${{ env.version }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish to Visual Studio Marketplace | ||
run: npx vsce publish -p "$MARKET_TOKEN" --packagePath '${{ env.name }}-${{ env.version }}.vsix' |
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,11 +15,13 @@ jobs: | |
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
- name: Install pnpm | ||
run: npm install -g [email protected] | ||
- name: Install dependencies | ||
run: pnpm install | ||
run: npm ci | ||
- name: Run unit tests | ||
run: npm run unit:test | ||
- name: Run integration tests | ||
run: xvfb-run -a npm test | ||
run: xvfb-run -a npm test | ||
- name: Install VS Code Extension Manager | ||
run: npm install -g @vscode/vsce | ||
- name: Run packge | ||
run: vsce package |
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.