Skip to content

Commit

Permalink
sync: cool branch to main (#58)
Browse files Browse the repository at this point in the history
* v1.1.3: Improv: Fix audit checks & make audit check part of CI (#39)

* improv: make audit check part of CI

* fix: audit checks with npm audit fix

* bump: v1.1.3

* fix: lint command in ci.yml

* fix: lint

* docs: changelog

* v1.1.4: Fix: Dependabot alerts (#40)

* bump: axios install

* docs: changelog

* bump: v1.1.4 (#41)

* Feat: Support for Windows (#38)

* add a command generate to support command execution on different OSs

* inject all services to handlers

* fix view custom profile details

* run powershell with -NoProfile on Windows

* fix linting issues

* wip: extensions install for .vscode/profile.json

* feat: launch custom profile

* fix: rename command

* run a lint fix

* bump: v2.0.0

* use shellRecords to decide which shell to use

* docs: changelog

* Feat: Clone Profile (#45)

* wip: clone-profile

* feat: add option to choose which extensions when cloning

* fix: restore launch-profile

* fix: run a lint fix

* improv: cleanup map for installing extensions in clone profile

* 2.1.0

* Setup: CD (#37)

* install vsce package

* add script to build project

* add cd section with github actions - create VSIX as an artifact

* fix: version usage in different steps

* fix: expression syntax

* fix: command to calculate version

* fix: set APP_VERSION output

* ignore .envrc file

* add script to run vsce

* publish vscode extension through Github Actions

* split ci and cd files

* rename ci and cd jobs

* Bump: nth-check from 2.0.0 to 2.0.1 (#47)

* Bump nth-check from 2.0.0 to 2.0.1

Bumps [nth-check](https://github.com/fb55/nth-check) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/fb55/nth-check/releases)
- [Commits](fb55/nth-check@v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: nth-check
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* 2.1.1

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Saurav Sahu <[email protected]>

* Fix: Audit fix & Bump Node.js to 16.13.0 (#49)

* (fix) audits

* (bump) node to lts version through nvmrc (Node Version Manager)

* (docs) split changelog to different file

* 2.1.2

* (docs) reconcile changelogs

* Feat: Support `code-insiders` (#50)

* (feat) use code or code-insiders based on where the extension is running

* 2.2.0

* [skip ci] chore: use reusable tmp github action for CI (#53)

* chore: use reusable mrsauravsahu/actions ci-vscode-extension/v0.3.0

* chore: update main branch to `main`

* 2.2.1

* bump: packages

* fix: npm audit issues

* chore: remove unused type superagent

* chore(ci): remove use of common action file

* fix: use github.ref_name

* chore(cicd): move tag/release to cd file

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
mrsauravsahu and dependabot[bot] authored Jul 6, 2022
1 parent f8eff2d commit 9b6303e
Show file tree
Hide file tree
Showing 28 changed files with 6,512 additions and 6,738 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "cd"

on:
push:
branches:
- main

jobs:
cd:
runs-on: ubuntu-latest

steps:
- name: Checkout to branch
uses: actions/checkout@v2

- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: ${{ secrets.NODE_VERSION }}

- name: Install packages
run: npm ci

- name: Calculate version
id: calculateVersion
run: |
APP_VERSION=`cat package.json | jq ".version" -M | sed 's/\"//g'`
echo "::set-output name=AppVersion::$APP_VERSION"
echo "app version = v$APP_VERSION"
- name: Build VSIX package
run: npm run build -- -o custom-profiles-for-vscode.v${{ steps.calculateVersion.outputs.AppVersion }}.vsix

- name: Publish extension package
env:
VSCODE_MARKETPLACE_TOKEN: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
run: npm run vsce -- publish -p $VSCODE_MARKETPLACE_TOKEN

- uses: rickstaa/action-create-tag@v1
name: Create tag
with:
tag: v${{ steps.calculateVersion.outputs.AppVersion }}

- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ steps.calculateVersion.outputs.AppVersion }}
release: v${{ steps.calculateVersion.outputs.AppVersion }}-test
artifacts: custom-profiles-for-vscode.v${{ steps.calculateVersion.outputs.AppVersion }}.vsix
36 changes: 25 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,41 @@ on:
branches:
- main

env:
NODE_VERSION: "14.17.0"
env:
MAIN_BRANCH: refs/heads/main

jobs:
ci_tests:
runs-on: ubuntu-20.04
ci:
runs-on: ubuntu-latest

steps:
- name: Checkout to branch
uses: actions/checkout@v2

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 6.7.1
run_install: true
- name: Calculate node version
id: calculateNodeVersion
run: |
NODE_VERSION=`cat .nvmrc`
echo "::set-output name=NodeVersion::$NODE_VERSION"
echo "node version = v$NODE_VERSION"
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
node-version: ${{ steps.calculateNodeVersion.outputs.NodeVersion }}

- name: Install packages
run: npm ci

- name: Lint project
run: pnpm lint
run: npm run lint

- name: Calculate version
id: calculateVersion
run: |
APP_VERSION=`cat package.json | jq ".version" -M | sed 's/\"//g'`
echo "::set-output name=AppVersion::$APP_VERSION"
echo "app version = v$APP_VERSION"
- name: Build VSIX package
run: npm run build -- -o custom-profiles-for-vscode.v${{ steps.calculateVersion.outputs.AppVersion }}.vsix
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules
*.vsix

/playground

.envrc
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.13.0
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,10 @@

The extension is available on the Marketplace - [here](https://marketplace.visualstudio.com/items?itemName=mrsauravsahu.vscode-manager).

## What's New? 🎉 🥳 - changelog
- **v1.1.0** Bug fix: Launch custom profiles from `.vscode/profile.json`
- **v1.0.0** Add featured profile section to show profiles from Github
- **v0.0.7** Bug fix: Refresh Explorer after a profile is deleted
- **v0.0.6** Create and share custom profile through a `.vscode/profile.json` file
- **v0.0.5** View generated profile details file
- **v0.0.4** Create new isolated profile with default settings
## 🎉 🥳 What's New? 👉 [changelog ](./changelog.md)

![Screenshot of the 'Custom Profiles for VSCode' Extension](https://user-images.githubusercontent.com/9134050/127419219-aac7e8f6-e7d0-44ea-b50f-5ec2ef3cea15.png)


## Coming soon 😎
- Clone profiles

Expand Down
29 changes: 29 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Changelog
## **v2.1.2**
Fix: NPM Audit fixes and bump Node.js to LTS (16.13.0)
## **v2.1.1**
Dependabot: nth-check from 2.0.0 to 2.0.1
## **v2.1.0**
Feat: Clone profiles
## **v2.0.0**
Feat: Support for Windows!
## **v1.1.4**
Fix: Dependabot alert - axios
## **v1.1.3**
Audit fix: Fix all npm audit failures
## **v1.1.2**
Fix: Extension activation when offline
## **v1.1.1**
Branding: Rename project to 'Custom Profiles for VSCode'
## **v1.1.0**
Bug fix: Launch custom profiles from `.vscode/profile.json`
## **v1.0.0**
Add featured profile section to show profiles from Github
## **v0.0.7**
Bug fix: Refresh Explorer after a profile is deleted
## **v0.0.6**
Feat: Create and share custom profile through a `.vscode/profile.json` file
## **v0.0.5**
Feat: View generated profile details file
## **v0.0.4**
Feat: Create new isolated profile with default settings
Loading

0 comments on commit 9b6303e

Please sign in to comment.