Skip to content

Commit 95d9d40

Browse files
authored
Merge pull request #54 from midouest/auto-publish
Auto publish
2 parents eb36d2d + 9045fec commit 95d9d40

3 files changed

Lines changed: 57 additions & 1 deletion

File tree

.github/workflows/publish.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Publish Extension
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
test:
10+
strategy:
11+
matrix:
12+
os: [macos-latest, ubuntu-latest, windows-latest]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Install Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 20.x
21+
cache: yarn
22+
- name: Install dependencies
23+
run: yarn install --frozen-lockfile
24+
- name: Build extension
25+
run: yarn compile
26+
- name: Install PlaydateSDK (macOS)
27+
run: ./scripts/installSDKMacOS.sh
28+
if: runner.os == 'macOS'
29+
- name: Install PlaydateSDK (Linux)
30+
run: ./scripts/installSDKLinux.sh
31+
if: runner.os == 'Linux'
32+
- name: Run tests (Linux)
33+
run: xvfb-run -a yarn test:ci
34+
if: runner.os == 'Linux'
35+
- name: Run tests
36+
run: yarn test:ci
37+
if: runner.os != 'Linux'
38+
39+
publish:
40+
needs: test
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@v3
45+
- name: Install Node.js
46+
uses: actions/setup-node@v3
47+
with:
48+
node-version: 20.x
49+
cache: yarn
50+
- name: Install dependencies
51+
run: yarn install --frozen-lockfile
52+
- name: Package extension
53+
run: npx vsce package --yarn
54+
- name: Publish to VSCode Marketplace
55+
run: npx vsce publish --yarn -p ${{ secrets.VSCE_PAT }}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20.19.5

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "playdate-debug",
33
"displayName": "Playdate Debug",
4-
"version": "1.19.0",
4+
"version": "1.20.0",
55
"publisher": "midouest",
66
"description": "Unofficial Playdate debug extension for macOS, Windows and Ubuntu",
77
"icon": "images/icon@2x.png",

0 commit comments

Comments
 (0)