|
1 | | -name: vsce Package |
2 | | - |
3 | | -# Controls when the workflow will run |
4 | | -on: |
5 | | - push: |
6 | | - branches: |
7 | | - - master |
8 | | - |
9 | | - pull_request: |
10 | | - |
11 | | - release: |
12 | | - types: [created] |
13 | | - |
14 | | - # Allows you to run this workflow manually from the Actions tab |
15 | | - workflow_dispatch: |
16 | | - inputs: |
17 | | - tags: |
18 | | - description: "Tag Name" |
19 | | - required: false |
20 | | - |
21 | | - workflow_call: |
22 | | - |
23 | | -# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
24 | | -jobs: |
25 | | - # This workflow contains a single job called "package" |
26 | | - package: |
27 | | - name: package |
28 | | - runs-on: ubuntu-latest |
29 | | - # Steps represent a sequence of tasks that will be executed as part of the job |
30 | | - steps: |
31 | | - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
32 | | - - uses: actions/checkout@v4.1.1 |
33 | | - - uses: actions/setup-node@v4.0.2 |
34 | | - with: |
35 | | - node-version: 20 |
36 | | - - name: Install dependencies |
37 | | - run: npm ci |
38 | | - |
39 | | - #- name: Build Grammar from yaml to json |
40 | | - # run: npm run bg |
41 | | - |
42 | | - - name: Package web extension |
43 | | - run: npm run vscode:prepublish |
44 | | - |
45 | | - - name: Install vsce |
46 | | - run: npm i -g @vscode/vsce |
47 | | - |
48 | | - - name: run vsce package |
49 | | - run: npm run package |
50 | | - |
51 | | - - name: Archive vsix production |
52 | | - uses: actions/upload-artifact@v4.3.1 |
53 | | - with: |
54 | | - name: vsix production |
55 | | - path: ./*.vsix |
56 | | - if-no-files-found: error |
57 | | - |
58 | | - - name: print tag |
59 | | - env: |
60 | | - TAGS: ${{ github.event.inputs.tags }} |
61 | | - run: | |
62 | | - echo "[$TAGS] build completed." |
| 1 | +name: vsce Package |
| 2 | + |
| 3 | +# Controls when the workflow will run |
| 4 | +on: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - master |
| 8 | + |
| 9 | + pull_request: |
| 10 | + |
| 11 | + release: |
| 12 | + types: [created] |
| 13 | + |
| 14 | + # Allows you to run this workflow manually from the Actions tab |
| 15 | + workflow_dispatch: |
| 16 | + inputs: |
| 17 | + tags: |
| 18 | + description: "Tag Name" |
| 19 | + required: false |
| 20 | + |
| 21 | + workflow_call: |
| 22 | + |
| 23 | +# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 24 | +jobs: |
| 25 | + # This workflow contains a single job called "package" |
| 26 | + package: |
| 27 | + name: package |
| 28 | + runs-on: ubuntu-latest |
| 29 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 30 | + steps: |
| 31 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 32 | + - uses: actions/checkout@v4 |
| 33 | + - uses: actions/setup-node@v4 |
| 34 | + with: |
| 35 | + node-version: 20 |
| 36 | + - name: Install dependencies |
| 37 | + run: npm ci |
| 38 | + |
| 39 | + #- name: Build Grammar from yaml to json |
| 40 | + # run: npm run bg |
| 41 | + |
| 42 | + - name: Package web extension |
| 43 | + run: npm run vscode:prepublish |
| 44 | + |
| 45 | + - name: Install vsce |
| 46 | + run: npm i -g @vscode/vsce |
| 47 | + |
| 48 | + - name: run vsce package |
| 49 | + run: npm run package |
| 50 | + |
| 51 | + - name: Archive vsix production |
| 52 | + uses: actions/upload-artifact@v4 |
| 53 | + with: |
| 54 | + name: vsix production |
| 55 | + path: ./*.vsix |
| 56 | + if-no-files-found: error |
| 57 | + |
| 58 | + - name: print tag |
| 59 | + env: |
| 60 | + TAGS: ${{ github.event.inputs.tags }} |
| 61 | + run: | |
| 62 | + echo "[$TAGS] build completed." |
0 commit comments