testing github workflow #24
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
name: "Publish extension" | |
on: | |
push: | |
branches: | |
- ci/cd | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-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 | |
- name: Installing Dependencies | |
run: npm install | |
- name: Installing Dev Dependencies | |
run: npm install -D | |
- name: Installing vsce | |
run: npm i -g @vscode/vsce --save | |
- name: Minor version | |
env: | |
CI: true | |
run: | | |
export GIT_USER=${{secrets.GIT_USER}} | |
git config --global user.name "yashrajb" | |
git config --global user.email "basanyash627@gmail.com" | |
npm version minor | |
- name: publish | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
run: vsce publish --pat $VSCE_PAT |