testing github workflow #21
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: Stash changes due npm version minor | |
run: git stash --include-untracked | |
- name: Minor version | |
run: | | |
export GIT_USER=${{secrets.GIT_USER}} | |
git config --global user.name "$GIT_USER" | |
git config --global user.email "basanyash627@gmail.com" | |
npm version minor | |
env: | |
CI: true | |
- name: Pop Stash | |
run: git stash pop | |
- name: publish | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
run: vsce publish --pat $VSCE_PAT |