-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (42 loc) · 1.27 KB
/
release-vscode.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
40
41
42
43
44
45
46
47
48
49
50
51
name: Release LaunchPad VS Code Extension
on:
push:
paths:
- 'apps/vscode/CHANGELOG.md'
branches:
- main
jobs:
release-vscode:
# Prevents action from publishing on forks
if: github.repository == 'launchdarkly/launchpad-ui'
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
audience: https://github.com/launchdarkly
role-to-assume: ${{ vars.AWS_ROLE_ARN }}
aws-region: us-east-1
- uses: dkershner6/aws-ssm-getparameters-action@v2
with:
parameterPairs: '/production/common/services/vscode_marketplace/vsce_pat = VSCE_PAT'
withDecryption: 'true'
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build extension
run: pnpm nx run launchpad-design-system:build
- name: Publish extension
run: pnpm nx run launchpad-design-system:publish