Skip to content

Commit 55e836a

Browse files
committed
feat: back to old code
1 parent e151792 commit 55e836a

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

Diff for: .github/workflows/release.yml

+2-19
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
11
name: Release
2-
32
on:
43
push:
54
branches:
65
- main
7-
86
jobs:
97
release:
108
runs-on: ubuntu-latest
11-
129
steps:
1310
- name: Checkout code
1411
uses: actions/checkout@v3
15-
with:
16-
fetch-depth: 0
17-
1812
- name: Set up Node.js
1913
uses: actions/setup-node@v3
2014
with:
2115
node-version: '18.x'
22-
2316
- name: Install dependencies
2417
run: npm install
25-
2618
- name: Commit any changes (if needed)
2719
run: |
2820
git config user.name "github-actions[bot]"
@@ -34,7 +26,6 @@ jobs:
3426
run: |
3527
current_version=$(npm version patch | sed 's/^v//')
3628
echo "new_version=$current_version" >> $GITHUB_ENV
37-
3829
- name: Build the extension
3930
run: npm run compile
4031

@@ -46,26 +37,17 @@ jobs:
4637
ls -lh
4738
ls -lh *.vsix || echo "No .vsix file found!"
4839
if [ -f *.vsix ]; then echo "vsix_file_exists=true" >> $GITHUB_ENV; else echo "vsix_file_exists=false" >> $GITHUB_ENV; fi
49-
50-
- name: Create a tag
51-
if: success() && env.vsix_file_exists == 'true'
52-
run: |
53-
git tag ${{ env.new_version }}
54-
git push origin ${{ env.new_version }}
55-
5640
- name: Create GitHub Release
5741
if: success() && env.vsix_file_exists == 'true'
5842
uses: softprops/action-gh-release@v1
5943
with:
6044
files: '*.vsix'
61-
tag_name: ${{ env.new_version }}
6245
env:
6346
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6447

6548
- name: Publish to Visual Studio Marketplace
6649
if: success() && env.vsix_file_exists == 'true'
6750
run: |
68-
npm install -g vsce
6951
vsce publish
7052
env:
7153
VSCE_PAT: ${{ secrets.VSCE_PAT }}
@@ -77,6 +59,7 @@ jobs:
7759
git config user.email "github-actions[bot]@users.noreply.github.com"
7860
git add package.json
7961
git commit -m "ci: bump version to ${{ env.new_version }}"
62+
git tag ${{ env.new_version }}
8063
git push origin main --tags
8164
env:
82-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)