Skip to content

Commit 09debec

Browse files
authored
Merge branch 'main' into dev
2 parents 761a797 + 748e3c0 commit 09debec

File tree

10 files changed

+3446
-765
lines changed

10 files changed

+3446
-765
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release Open VSX
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
if: github.repository_owner == 'pnp'
12+
name: "Build and release"
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: write
17+
packages: read
18+
19+
steps:
20+
- name: Setup node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22
24+
registry-url: https://registry.npmjs.org/
25+
26+
- name: Checkout vscode-viva
27+
uses: actions/checkout@v4
28+
with:
29+
path: vscode-viva
30+
31+
- name: Install the dependencies
32+
run: npm install --omit=optional
33+
working-directory: vscode-viva
34+
35+
- name: Publish
36+
run: npx ovsx@0.10.9 publish -p ${{ secrets.OVSX_TOKEN }}
37+
working-directory: vscode-viva

.github/workflows/update-samples.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,29 @@ jobs:
4646
- run: |
4747
dir
4848
49-
- run: .\scripts\prepare-sample-data.ps1 -workspacePath "${{ github.workspace }}"
49+
- name: Generate sample data
50+
run: .\scripts\prepare-sample-data.ps1 -workspacePath "${{ github.workspace }}"
51+
shell: pwsh
52+
53+
- name: Read statistics
54+
id: stats
55+
run: |
56+
$delimiter = "EOF_STATS_$(Get-Random)"
57+
$stats = Get-Content sample-stats.txt -Raw
58+
"STATS<<$delimiter" >> $env:GITHUB_OUTPUT
59+
$stats >> $env:GITHUB_OUTPUT
60+
$delimiter >> $env:GITHUB_OUTPUT
61+
Remove-Item sample-stats.txt
5062
shell: pwsh
51-
continue-on-error: true
5263

5364
- name: Create Pull Request
5465
uses: peter-evans/create-pull-request@v5
5566
with:
5667
commit-message: Updates sample data
5768
branch: update-sample-data
5869
title: Sample data update
59-
body: Automated check and update of SPFx extensions and webparts samples data and aces sample data.
70+
body: |
71+
Automated check and update of SPFx extensions and webparts samples data and aces sample data.
72+
73+
${{ steps.stats.outputs.STATS }}
6074
...

0 commit comments

Comments
 (0)