-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (61 loc) · 1.71 KB
/
vsce_publish_pre.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: vsce Publish Pre-release
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
tags:
description: "Tag Name"
required: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
#test:
# strategy:
# matrix:
# os: [macos-latest, ubuntu-latest, windows-latest]
# runs-on: ${{ matrix.os }}
#
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: 18
# - name: Install dependencies
# run: npm ci
#
# - name: Build Grammar from yaml to json
# run: npm run bg
#
# - name: Webpack compile web
# run: npm run pretest
#
# - name: Run headless test
# uses: coactions/setup-xvfb@v1
# with:
# run: npm test
publish:
#needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
run: npm ci
#- name: Build Grammar from yaml to json
# run: npm run bg
- name: Package web extension
run: npm run vscode:prepublish
- name: Install vsce
run: npm i -g @vscode/vsce
- name: run vsce publish with pre-release flag
run: npm run publish-pre
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: print tag
env:
TAGS: ${{ github.event.inputs.tags }}
run: |
echo "[$TAGS] publish with pre-release completed."