generated from timothymiller/t4-app
-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.23 KB
/
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
name: Publish VS Code Extension
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'apps/vscode/**'
jobs:
publish:
if: github.repository_owner == 'timothymiller'
name: Publish VS Code Extension
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
# - name: Check version changes
# uses: EndBug/version-check@v1
# id: check
# with:
# file-name: ./apps/vscode/package.json
# - name: Version update detected
# if: steps.check.outputs.changed == 'true'
# run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'
- name: Setup Node.js for NPM
# if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: 📥 Monorepo install
# if: steps.check.outputs.changed == 'true'
uses: ./.github/actions/pnpm-install
- name: Publish
# if: steps.check.outputs.changed == 'true'
run: cd apps/vscode && pnpm dlx @vscode/vsce publish --no-dependencies -p ${{ secrets.VSCE_TOKEN }}