-
-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (44 loc) · 1.26 KB
/
publish.yml
File metadata and controls
49 lines (44 loc) · 1.26 KB
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
# Triggered when a GitHub Release is published.
# The publish jobs run inside the `marketplace` environment, which gates them
# behind required reviewers and branch policy. See PUBLISH.md for full setup.
name: Publish the VS Code Extension
on:
release:
types: [published]
permissions:
contents: read
jobs:
publish-vsce:
name: Publish to VS Code Marketplace
runs-on: ubuntu-latest
environment: marketplace
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '22'
- run: npm ci
- run: npm run pretest
- uses: azure/login@v3
with:
client-id: ${{ vars.AZURE_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
allow-no-subscriptions: true
- run: npm run publish -- --azure-credential
publish-ovsx:
name: Publish to Open VSX
runs-on: ubuntu-latest
environment: marketplace
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '22'
- run: npm ci
- run: npm run pretest
- run: npx ovsx publish --pat ${{ secrets.OPEN_VSX_MARKETPLACE_TOKEN }}