-
Notifications
You must be signed in to change notification settings - Fork 28
38 lines (32 loc) · 1.06 KB
/
release-preview.yaml
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
name: Build and Release "Preview"
on:
push:
branches:
- main
jobs:
build:
uses: snyk/vscode-extension/.github/workflows/ci.yaml@main
secrets:
ITERATIVELY_KEY: ${{ secrets.ITERATIVELY_KEY }}
release-preview:
name: Release Preview
runs-on: ubuntu-latest
environment: Preview
needs: build
steps:
- name: Setup VSCE
run: npm install -g vsce@latest
- name: Fetch sources
uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Verify analytics events
run: npm run ampli:verify -- -t ${{ secrets.ITERATIVELY_KEY }}
- name: Patch to preview version
run: npm run patch-preview
env:
SNYK_VSCE_SEGMENT_WRITE_KEY: ${{ secrets.SNYK_VSCE_SEGMENT_WRITE_KEY }}
SNYK_VSCE_AMPLITUDE_EXPERIMENT_API_KEY: ${{ secrets.SNYK_VSCE_AMPLITUDE_EXPERIMENT_API_KEY }}
SNYK_VSCE_SENTRY_DSN_KEY: ${{ secrets.SNYK_VSCE_SENTRY_DSN_KEY }}
- name: Publish to Marketplace
run: vsce publish -p ${{ secrets.MARKETPLACE_TOKEN }}