diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b8abe0..10b7670 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: npm - name: Install dependencies run: npm ci diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3f902dd..d9ca8ca 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,8 @@ on: push: branches: - master +permissions: + contents: write jobs: publish: @@ -13,12 +15,28 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - name: Install dependencies - run: npm ci + run: | + npm ci + npm install -g @vscode/vsce + + - name: List packaged files + run: npx vsce ls + + - name: Configure Git + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + - name: Version bump + run: | + npm version patch + git push + git push --tags - name: Publish to VS Code Marketplace - run: npx vsce publish + run: npx vsce publish patch env: VSCE_PAT: ${{ secrets.VSCE_PAT }} diff --git a/package-lock.json b/package-lock.json index d1b3190..463f772 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "gops", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gops", - "version": "0.0.1", + "version": "0.0.2", "dependencies": { "simple-git": "^3.36.0" }, diff --git a/package.json b/package.json index a270e74..2ab2e20 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "gops", "displayName": "Gops - Visual Git Toolkit", "description": "Visual Git Toolkit for VS Code", - "version": "0.0.1", + "version": "0.0.2", "publisher": "codemanxdev", "repository": { "type": "git",