19
19
runs-on : ${{ matrix.os }}
20
20
strategy :
21
21
matrix :
22
- os : [ubuntu-latest, windows-latest, macOS-latest]
22
+ # os: [ubuntu-latest, windows-latest, macOS-latest]
23
+ os : [ubuntu-latest]
23
24
steps :
24
- - uses : actions/checkout@v3
25
+ - uses : actions/checkout@v2
25
26
- run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
26
27
- name : Set an output
27
28
id : set-version
45
46
echo $VERSION > .version
46
47
echo $NAME > .name
47
48
- name : Use Node.js
48
- uses : actions/setup-node@v1
49
+ uses : actions/setup-node@v2
49
50
with :
50
- node-version : 14.x
51
+ node-version : 14
51
52
- run : npm install
52
53
- name : lint
53
54
if : runner.os == 'Linux'
@@ -61,12 +62,12 @@ jobs:
61
62
if : runner.os == 'Linux'
62
63
run : |
63
64
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix
64
- - uses : actions/upload-artifact@v3
65
+ - uses : actions/upload-artifact@v2
65
66
if : runner.os == 'Linux'
66
67
with :
67
68
name : ${{ steps.set-version.outputs.name }}.vsix
68
69
path : ${{ steps.set-version.outputs.name }}.vsix
69
- - uses : actions/upload-artifact@v3
70
+ - uses : actions/upload-artifact@v2
70
71
if : runner.os == 'Linux'
71
72
with :
72
73
name : meta
78
79
runs-on : ubuntu-latest
79
80
needs : build
80
81
steps :
81
- - uses : actions/download-artifact@v3
82
+ - uses : actions/download-artifact@v2
82
83
with :
83
84
name : meta
84
85
path : .
89
90
set -x
90
91
echo ::set-output name=version::`cat .version`
91
92
echo ::set-output name=name::`cat .name`
92
- - uses : actions/download-artifact@v3
93
+ - uses : actions/download-artifact@v2
93
94
with :
94
95
name : ${{ steps.set-version.outputs.name }}.vsix
95
96
- name : Create Release
@@ -121,24 +122,24 @@ jobs:
121
122
runs-on : ubuntu-latest
122
123
needs : build
123
124
steps :
124
- - uses : actions/checkout@v3
125
+ - uses : actions/checkout@v2
125
126
with :
126
127
ref : master
127
- token : ${{ secrets.TOKEN }}
128
- - uses : actions/download-artifact@v3
128
+ token : ${{ secrets.GITHUB_TOKEN }}
129
+ - uses : actions/download-artifact@v2
129
130
with :
130
131
name : meta
131
132
path : .
132
133
- name : Use Node.js
133
- uses : actions/setup-node@v3
134
+ uses : actions/setup-node@v2
134
135
with :
135
- node-version : 16
136
+ node-version : 14
136
137
- name : Prepare build
137
138
id : set-version
138
139
run : |
139
140
VERSION=`cat .version`
140
141
NEXT_VERSION=`cat .version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
141
- echo ::set-output name=name::`cat .name` >> $GITHUB_OUTPUT
142
+ echo ::set-output name=name::`cat .name`
142
143
tmp=$(mktemp)
143
144
git config --global user.name 'ProjectBot'
144
145
git config --global user.email '[email protected] '
@@ -170,4 +171,4 @@ jobs:
170
171
- name : Publish to Open VSX Registry
171
172
run : |
172
173
[ -n "${{ secrets.OVSX_TOKEN }}" ] && \
173
- npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true
174
+ npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true
0 commit comments