File tree Expand file tree Collapse file tree 2 files changed +97
-0
lines changed Expand file tree Collapse file tree 2 files changed +97
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish VS Code Extension with Changelog Update
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ update_changelog :
9
+ runs-on : ubuntu-latest
10
+ permissions :
11
+ contents : write
12
+
13
+ steps :
14
+ - name : Checkout code
15
+ uses : actions/checkout@v2
16
+
17
+ - name : Update Changelog
18
+ uses : laravel/.github/.github/workflows/update-changelog.yml@main
19
+
20
+ publish :
21
+ runs-on : ubuntu-latest
22
+ needs : update_changelog
23
+ steps :
24
+ - name : Checkout code
25
+ uses : actions/checkout@v2
26
+
27
+ - name : Set up Node.js
28
+ uses : actions/setup-node@v2
29
+ with :
30
+ node-version : " latest"
31
+
32
+ - name : Install dependencies
33
+ run : npm install
34
+
35
+ - name : Publish Extension
36
+ env :
37
+ VSCE_TOKEN : ${{ secrets.VSCE_TOKEN }}
38
+ run : npx vsce publish -p $VSCE_TOKEN --no-git-tag-version
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ echo " 🚀 Laravel VS Code Extension Release"
6
+ echo " =========================================="
7
+
8
+ echo
9
+ echo " Current version: $( node -p " require('./package.json').version" ) "
10
+ echo
11
+
12
+ echo " Select version bump type:"
13
+ echo " 1) patch (bug fixes)"
14
+ echo " 2) minor (new features)"
15
+ echo " 3) major (breaking changes)"
16
+ echo
17
+
18
+ read -p " Enter your choice (1-3): " choice
19
+
20
+ case $choice in
21
+ 1)
22
+ version_type=" patch"
23
+ ;;
24
+ 2)
25
+ version_type=" minor"
26
+ ;;
27
+ 3)
28
+ version_type=" major"
29
+ ;;
30
+ * )
31
+ echo " ❌ Invalid choice. Exiting."
32
+ exit 1
33
+ ;;
34
+ esac
35
+
36
+ echo
37
+ echo " 📦 Updating version to $version_type ..."
38
+
39
+ new_version=$( npm version $version_type )
40
+ echo " ✅ Version updated to $new_version "
41
+
42
+ echo
43
+ echo " 📤 Pushing to repository..."
44
+ git push origin main --follow-tags
45
+
46
+ echo " ✅ Pushed to repository"
47
+
48
+ echo
49
+ echo " 🎉 Release $new_version is ready!"
50
+ echo
51
+ echo " 📋 Opening GitHub release page..."
52
+
53
+ release_url=" https://github.com/laravel/vs-code-extension/releases/new?tag=$new_version
54
+
55
+ open " $release_url "
56
+
57
+ echo
58
+ echo " 🔗 Direct link to release page:"
59
+ echo " $release_url "
You can’t perform that action at this time.
0 commit comments