forked from Zwyx/vscode-autoclosetabs
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 832 Bytes
/
publish-extension.yml
File metadata and controls
38 lines (30 loc) · 832 Bytes
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
on:
push:
branches:
- main
workflow_dispatch:
name: Publish extension
jobs:
publish-extension:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "nvmrc=$(cat .nvmrc)" >> $GITHUB_ENV
id: nvmrc
- uses: actions/setup-node@v4
with:
node-version: "${{ env.nvmrc }}"
cache: npm
- run: npm ci
- env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}
run: |
npm run publish
npm run ovsx-publish
# - name: Setup tmate session
# if: ${{ always() }}
# timeout-minutes: 30 # Run `sudo shutdown -h now` to terminate the session
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# uses: mxschmitt/action-tmate@v3