Skip to content

Commit 9f0b93e

Browse files
Merge pull request #10 from ember-tooling/neovim/update-ci
Update CI and README for neovim
2 parents 84f14a6 + 33e6502 commit 9f0b93e

File tree

2 files changed

+15
-81
lines changed

2 files changed

+15
-81
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ name: CI
33
on:
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

1210
concurrency:
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

1614
jobs:
1715
lint:
@@ -22,78 +20,3 @@ jobs:
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

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,25 @@ Preconfigured snippets for ember projects following Polaris Patterns.
1111
- VSCode: https://marketplace.visualstudio.com/items?itemName=EmberTooling.emberjs-snippets
1212
- Open VSX: https://open-vsx.org/extension/embertooling/emberjs-snippets
1313
- (neo)vim:
14-
- packer.nvim: `use { "ember-tooling/snippets" }`
14+
- packer.nvim: `use { "ember-tooling/snippets", branch: "neovim/main" }`
1515

1616

1717
## Important
1818

1919
This extension is optimized for developers that use Ember Polaris patterns and features, which are supported back to ember-source 3.28.
2020
If you need Ember Octane (and earlier) snippets, this snippet pack is not for you.
2121

22+
23+
Main branches:
24+
- [VSCode][vscode-main]
25+
- [NeoVim][neovim-main]
26+
27+
✨ Development happens on these branches ✨
28+
29+
[vscode-main]: https://github.com/ember-tooling/snippets/tree/vscode/main
30+
[neovim-main]: https://github.com/ember-tooling/snippets/tree/neovim/main
31+
32+
2233
## Usage
2334

2435
Many snippets will show up in auto-completion prompts as you're typing.

0 commit comments

Comments
 (0)