@@ -61,10 +61,10 @@ jobs:
61
61
tmp=$(mktemp)
62
62
jq --arg version "$VERSION" '.version = $version' package.json > "$tmp" && mv "$tmp" package.json
63
63
mkdir dist
64
- echo $VERSION > .version
65
- echo $NAME > .name
64
+ echo $VERSION > meta .version
65
+ echo $NAME > meta .name
66
66
- name : Use Node.js
67
- uses : actions/setup-node@v3
67
+ uses : actions/setup-node@v4
68
68
with :
69
69
node-version : 20
70
70
- run : npm install
@@ -80,24 +80,24 @@ jobs:
80
80
if : runner.os == 'Linux'
81
81
run : |
82
82
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix
83
- - uses : actions/upload-artifact@v4.4.2
83
+ - uses : actions/upload-artifact@v4
84
84
if : (runner.os == 'Linux') && (github.event_name != 'release')
85
85
with :
86
86
name : ${{ steps.set-version.outputs.name }}.vsix
87
87
path : ${{ steps.set-version.outputs.name }}.vsix
88
- - uses : actions/upload-artifact@v4.4.2
88
+ - uses : actions/upload-artifact@v4
89
89
if : runner.os == 'Linux'
90
90
with :
91
91
name : meta
92
92
path : |
93
- .name
94
- .version
93
+ meta .name
94
+ meta .version
95
95
beta :
96
96
if : (github.event_name == 'push')
97
97
runs-on : ubuntu-latest
98
98
needs : build
99
99
steps :
100
- - uses : actions/download-artifact@v4.1.7
100
+ - uses : actions/download-artifact@v4
101
101
with :
102
102
name : meta
103
103
path : .
@@ -106,9 +106,9 @@ jobs:
106
106
if : runner.os == 'Linux'
107
107
run : |
108
108
set -x
109
- echo "version=`cat .version`" >> $GITHUB_OUTPUT
110
- echo "name=`cat .name`" >> $GITHUB_OUTPUT
111
- - uses : actions/download-artifact@v4.1.7
109
+ echo "version=`cat meta .version`" >> $GITHUB_OUTPUT
110
+ echo "name=`cat meta .name`" >> $GITHUB_OUTPUT
111
+ - uses : actions/download-artifact@v4
112
112
with :
113
113
name : ${{ steps.set-version.outputs.name }}.vsix
114
114
- name : Create Release
@@ -129,20 +129,20 @@ jobs:
129
129
with :
130
130
ref : main
131
131
token : ${{ secrets.TOKEN }}
132
- - uses : actions/download-artifact@v4.1.7
132
+ - uses : actions/download-artifact@v4
133
133
with :
134
134
name : meta
135
135
path : .
136
136
- name : Use Node.js
137
- uses : actions/setup-node@v3
137
+ uses : actions/setup-node@v4
138
138
with :
139
139
node-version : 20
140
140
- name : Prepare build
141
141
id : set-version
142
142
run : |
143
- VERSION=`cat .version`
144
- NEXT_VERSION=`cat .version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
145
- echo "name=`cat .name`" >> $GITHUB_OUTPUT
143
+ VERSION=`cat meta .version`
144
+ NEXT_VERSION=`cat meta .version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
145
+ echo "name=`cat meta .name`" >> $GITHUB_OUTPUT
146
146
tmp=$(mktemp)
147
147
git config --global user.name 'ProjectBot'
148
148
git config --global user.email '[email protected] '
0 commit comments