-
-
Notifications
You must be signed in to change notification settings - Fork 33
39 lines (39 loc) · 1.33 KB
/
create-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on:
push:
branches:
- main
name: create-release
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v4
id: release
- name: Setup Node.js
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Checkout code
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
- name: Make envfile
if: ${{ steps.release.outputs.release_created }}
run: |
echo APP_INSIGHT_INSTRUMENT_KEY=${{ secrets.APP_INSIGHT_INSTRUMENT_KEY }} >> .env
- run: yarn install
if: ${{ steps.release.outputs.release_created }}
- run: yarn run compile
if: ${{ steps.release.outputs.release_created }}
- run: npm install -g vsce
if: ${{ steps.release.outputs.release_created }}
- run: vsce publish -p $VSCE_TOKEN --yarn
if: ${{ steps.release.outputs.release_created }}
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
- run: npm install -g ovsx
if: ${{ steps.release.outputs.release_created }}
- run: ovsx publish -p $OVSX_TOKEN --yarn
if: ${{ steps.release.outputs.release_created }}
env:
OVSX_TOKEN: ${{ secrets.OVSX_TOKEN }}