|
4 | 4 | branches: [master]
|
5 | 5 | pull_request:
|
6 | 6 | branches: [master]
|
7 |
| - release: |
8 |
| - types: [published] |
9 | 7 |
|
10 | 8 | jobs:
|
11 | 9 | build-and-analyse:
|
@@ -175,93 +173,3 @@ jobs:
|
175 | 173 | build-root-directory: extension/test-fixtures/gradle-kotlin-default-build-file
|
176 | 174 | wrapper-directory: extension/test-fixtures/gradle-kotlin-default-build-file
|
177 | 175 | wrapper-cache-enabled: false
|
178 |
| - |
179 |
| - publish-beta-extension: |
180 |
| - needs: [test-extension] |
181 |
| - name: Publish BETA extension |
182 |
| - runs-on: ubuntu-latest |
183 |
| - if: github.event_name == 'push' && contains(github.ref, '/release/') |
184 |
| - steps: |
185 |
| - - uses: actions/checkout@v2 |
186 |
| - - name: Use Node 14.15.4 |
187 |
| - uses: actions/setup-node@v1 |
188 |
| - with: |
189 |
| - node-version: 14.15.4 |
190 |
| - - name: Build & prepare extension |
191 |
| - uses: eskatos/gradle-command-action@v1 |
192 |
| - with: |
193 |
| - arguments: prepareForBetaRelease --no-daemon |
194 |
| - wrapper-cache-enabled: false |
195 |
| - - name: Publish types |
196 |
| - env: |
197 |
| - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
198 |
| - run: | |
199 |
| - cd npm-package |
200 |
| - version="0.0.$GITHUB_RUN_ID" |
201 |
| - echo "Setting package version $version" |
202 |
| - npm --no-git-tag-version version "$version" |
203 |
| - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc |
204 |
| - npm publish |
205 |
| - - name: Publish extension |
206 |
| - env: |
207 |
| - AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }} |
208 |
| - run: | |
209 |
| - cd extension |
210 |
| - version="0.0.$GITHUB_RUN_ID" |
211 |
| - echo "Setting package version $version" |
212 |
| - npm --no-git-tag-version version "$version" |
213 |
| - npx vsce publish -p "$AZURE_TOKEN" |
214 |
| -
|
215 |
| - publish-extension: |
216 |
| - needs: [test-extension] |
217 |
| - name: Publish extension |
218 |
| - runs-on: ubuntu-latest |
219 |
| - if: github.event_name == 'release' && github.event.action == 'published' |
220 |
| - steps: |
221 |
| - - uses: actions/checkout@v2 |
222 |
| - - name: Use Node 14.15.4 |
223 |
| - uses: actions/setup-node@v1 |
224 |
| - with: |
225 |
| - node-version: 14.15.4 |
226 |
| - - name: Cache gradle |
227 |
| - uses: actions/cache@v2 |
228 |
| - with: |
229 |
| - path: | |
230 |
| - ~/.gradle/caches |
231 |
| - ~/.gradle/wrapper |
232 |
| - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} |
233 |
| - restore-keys: | |
234 |
| - ${{ runner.os }}-gradle- |
235 |
| - - name: Cache npm cache directory |
236 |
| - uses: actions/cache@v2 |
237 |
| - with: |
238 |
| - path: ~/.npm |
239 |
| - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} |
240 |
| - restore-keys: | |
241 |
| - ${{ runner.os }}-node- |
242 |
| - - name: Build & prepare extension |
243 |
| - uses: eskatos/gradle-command-action@v1 |
244 |
| - with: |
245 |
| - arguments: prepareForRelease --no-daemon |
246 |
| - wrapper-cache-enabled: false |
247 |
| - - name: Publish types |
248 |
| - env: |
249 |
| - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
250 |
| - run: | |
251 |
| - cd npm-package |
252 |
| - tag=${GITHUB_REF#refs/tags/} |
253 |
| - echo "Setting package version $tag" |
254 |
| - npm --no-git-tag-version version "$tag" |
255 |
| - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc |
256 |
| - npm publish |
257 |
| - - name: Publish extension |
258 |
| - env: |
259 |
| - AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }} |
260 |
| - OPENVSX_TOKEN: ${{ secrets.OPENVSX_TOKEN }} |
261 |
| - run: | |
262 |
| - cd extension |
263 |
| - tag=${GITHUB_REF#refs/tags/} |
264 |
| - echo "Setting package version $tag" |
265 |
| - npm --no-git-tag-version version "$tag" |
266 |
| - npx vsce publish -p "$AZURE_TOKEN" |
267 |
| - npx ovsx publish -p "$OPENVSX_TOKEN" |
0 commit comments