2121 matrix :
2222 os : [ubuntu-latest, windows-latest, macOS-latest]
2323 steps :
24- - uses : actions/checkout@master
24+ - uses : actions/checkout@v2
25+ with :
26+ ref : master
2527 - run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2628 - name : Set an output
2729 id : set-version
4547 echo $VERSION > ./dist/.version
4648 echo $NAME > ./dist/.name
4749 - name : Use Node.js
48- uses : actions/setup-node@master
50+ uses : actions/setup-node@v1
4951 with :
5052 node-version : 12.x
5153 - run : npm install
6163 if : runner.os == 'Linux'
6264 run : |
6365 ./node_modules/.bin/vsce package -o ./dist/package.vsix
64- - uses : actions/upload-artifact@master
66+ - uses : actions/upload-artifact@v2
6567 if : runner.os == 'Linux'
6668 with :
6769 name : vsix
7173 runs-on : ubuntu-latest
7274 needs : build
7375 steps :
74- - uses : actions/download-artifact@master
76+ - uses : actions/download-artifact@v2
7577 with :
7678 name : vsix
7779 path : ./dist/
8486 echo ::set-output name=name::`cat ./dist/.name`
8587 - name : Create Release
8688 id : create_release
87- uses : actions/create-release@master
89+ uses : actions/create-release@v1
8890 if : runner.os == 'Linux'
8991 env :
9092 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9799 ${{ steps.set-version.outputs.changelog }}
98100 - name : Upload Release Asset
99101 id : upload-release-asset
100- uses : actions/upload-release-asset@master
102+ uses : actions/upload-release-asset@v1
101103 if : runner.os == 'Linux'
102104 env :
103105 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -114,12 +116,13 @@ jobs:
114116 - uses : actions/checkout@v2
115117 with :
116118 ref : master
117- - uses : actions/download-artifact@master
119+ token : ${{ secrets.TOKEN }}
120+ - uses : actions/download-artifact@v2
118121 with :
119122 name : vsix
120123 path : ./dist/
121124 - name : Use Node.js
122- uses : actions/setup-node@master
125+ uses : actions/setup-node@v1
123126 with :
124127 node-version : 12.x
125128 - name : Prepare build
@@ -141,7 +144,7 @@ jobs:
141144 git push
142145 - name : Upload Release Asset
143146 id : upload-release-asset
144- uses : actions/upload-release-asset@master
147+ uses : actions/upload-release-asset@v1
145148 if : runner.os == 'Linux'
146149 env :
147150 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments