@@ -3,15 +3,13 @@ name: CI
33on :
44 push :
55 branches :
6- - main
7- paths-ignore : # dont run when changes made to these folders
8- - ' .vscode/**'
6+ - neovim/main
97 pull_request : {}
108 workflow_dispatch :
119
1210concurrency :
13- group : ci-${{ github.head_ref || github.ref }}
14- cancel-in-progress : true
11+ group : ci-${{ github.head_ref || github.ref }}
12+ cancel-in-progress : true
1513
1614jobs :
1715 lint :
2220 - uses : actions/checkout@v4
2321 - uses : wyvox/action-setup-pnpm@v3
2422 - run : pnpm prettier . --check
25-
26- package :
27- name : Package
28- runs-on : ubuntu-latest
29- timeout-minutes : 10
30- steps :
31- - uses : actions/checkout@v4
32- - uses : wyvox/action-setup-pnpm@v3
33-
34- - name : fetch all history and tags from all branches for gitversion
35- run : git fetch --prune --unshallow
36-
37- - uses : actions/setup-dotnet@v4
38-
39- - name : install gitversion tool
40- uses : gittools/actions/gitversion/setup@v3.2.0
41-
42- - name : execute gitversion
43- id : gitversion # step id used as reference for output values
44- uses : gittools/actions/gitversion/execute@v3.2.0
45-
46- - name : print gitversion
47- run : |
48- echo "Major: ${{ steps.gitversion.outputs.major }}"
49- echo "Minor: ${{ steps.gitversion.outputs.minor }}"
50- echo "Patch: ${{ steps.gitversion.outputs.patch }}"
51- echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}"
52- echo "SemVer: ${{ steps.gitversion.outputs.semVer }}"
53-
54- - name : update metadata in package.json
55- uses : onlyutkarsh/patch-files-action@v1.0.1
56- with :
57- files : ' ${{github.workspace}}/package.json'
58- patch-syntax : |
59- = /version => "${{ steps.gitversion.outputs.majorMinorPatch }}"
60-
61- - name : add version in CHANGELOG.md
62- uses : cschleiden/replace-tokens@v1.0
63- with :
64- files : ' ${{github.workspace}}/CHANGELOG.md'
65- env :
66- VERSION : " ${{ steps.gitversion.outputs.majorMinorPatch }}"
67-
68- - name : compile and create vsix
69- run : pnpm vs:package
70-
71- - name : upload vsix as artifact
72- uses : actions/upload-artifact@v4
73- with :
74- name : emberjs-snippets-${{steps.gitversion.outputs.majorMinorPatch}}.vsix
75- path : ${{github.workspace}}/emberjs-snippets-${{steps.gitversion.outputs.majorMinorPatch}}.vsix
76-
77- - name : create a release
78- if : github.ref == 'refs/heads/main'
79- continue-on-error : false
80- uses : actions/create-release@v1
81- env :
82- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
83- with :
84- tag_name : v${{ steps.gitversion.outputs.semVer }}
85- release_name : v${{ steps.gitversion.outputs.semVer }}
86-
87- - name : publish to marketplace VSCODE
88- if : github.ref == 'refs/heads/main'
89- env :
90- VSCODE_TOKEN : ${{ secrets.VSCODE_TOKEN }}
91- run : pnpm vs:publish:ci
92- continue-on-error : true
93-
94- - name : publish to marketplace OPEN VSX
95- if : github.ref == 'refs/heads/main'
96- env :
97- OPENVSX_TOKEN : ${{ secrets.OPENVSX_TOKEN }}
98- run : pnpm ov:publish:ci
99- continue-on-error : true
0 commit comments