21
21
matrix :
22
22
os : [ubuntu-latest, windows-latest, macOS-latest]
23
23
steps :
24
- - uses : actions/checkout@master
24
+ - uses : actions/checkout@v2
25
+ with :
26
+ ref : master
25
27
- run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
26
28
- name : Set an output
27
29
id : set-version
45
47
echo $VERSION > ./dist/.version
46
48
echo $NAME > ./dist/.name
47
49
- name : Use Node.js
48
- uses : actions/setup-node@master
50
+ uses : actions/setup-node@v1
49
51
with :
50
52
node-version : 12.x
51
53
- run : npm install
61
63
if : runner.os == 'Linux'
62
64
run : |
63
65
./node_modules/.bin/vsce package -o ./dist/package.vsix
64
- - uses : actions/upload-artifact@master
66
+ - uses : actions/upload-artifact@v2
65
67
if : runner.os == 'Linux'
66
68
with :
67
69
name : vsix
71
73
runs-on : ubuntu-latest
72
74
needs : build
73
75
steps :
74
- - uses : actions/download-artifact@master
76
+ - uses : actions/download-artifact@v2
75
77
with :
76
78
name : vsix
77
79
path : ./dist/
84
86
echo ::set-output name=name::`cat ./dist/.name`
85
87
- name : Create Release
86
88
id : create_release
87
- uses : actions/create-release@master
89
+ uses : actions/create-release@v1
88
90
if : runner.os == 'Linux'
89
91
env :
90
92
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
97
99
${{ steps.set-version.outputs.changelog }}
98
100
- name : Upload Release Asset
99
101
id : upload-release-asset
100
- uses : actions/upload-release-asset@master
102
+ uses : actions/upload-release-asset@v1
101
103
if : runner.os == 'Linux'
102
104
env :
103
105
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -114,12 +116,13 @@ jobs:
114
116
- uses : actions/checkout@v2
115
117
with :
116
118
ref : master
117
- - uses : actions/download-artifact@master
119
+ token : ${{ secrets.TOKEN }}
120
+ - uses : actions/download-artifact@v2
118
121
with :
119
122
name : vsix
120
123
path : ./dist/
121
124
- name : Use Node.js
122
- uses : actions/setup-node@master
125
+ uses : actions/setup-node@v1
123
126
with :
124
127
node-version : 12.x
125
128
- name : Prepare build
@@ -141,7 +144,7 @@ jobs:
141
144
git push
142
145
- name : Upload Release Asset
143
146
id : upload-release-asset
144
- uses : actions/upload-release-asset@master
147
+ uses : actions/upload-release-asset@v1
145
148
if : runner.os == 'Linux'
146
149
env :
147
150
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments