Skip to content

Commit

Permalink
Merge pull request #2 from ElvisAns/minor-changes-and-cicd
Browse files Browse the repository at this point in the history
Minor changes and cicd configuration
  • Loading branch information
ElvisAns authored May 26, 2024
2 parents 7de559a + 0cf3aa2 commit 81b199b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 9 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/.ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test
7 changes: 2 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
Expand All @@ -14,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- run: npm ci
- run: npm test

Expand All @@ -25,7 +22,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# VuePredictiveSearch
VuePredictiveSearch is a Vue.js component that provides a simple yet powerful predictive search feature for your web applications. It supports fuzzy search, making it easy for users to find relevant items even with slight typos or variations.

[![npm version](https://img.shields.io/npm/v/vue-predictive-search.svg)](https://www.npmjs.com/package/vue-predictive-search) [![Total Downloads](https://img.shields.io/npm/dt/vue-predictive-search.svg)](https://www.npmjs.com/package/vue-predictive-search) [![CI](https://github.com/ElvisAns/VuePredictiveSearch/actions/workflows/.ci.yaml/badge.svg?branch=main)](https://github.com/ElvisAns/VuePredictiveSearch/actions/workflows/.ci.yaml)
## Installation
```bash
npm install VuePredictiveSearch
Expand Down
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"name": "vue-predictive-search",
"author": "Ansima Elvis",
"repository": {
"type": "git",
"url": "https://github.com/ElvisAns/VuePredictiveSearch"
},
"license": "MIT",
"version": "1.0.2",
"version": "1.0.3",
"description": "The most flexible search component for vuejs applications with auto suggestion and fuzzy search feature",
"main": "./dist/vue-predictive-search.umd.cjs",
"module": "./dist/vue-predictive-search.js",
Expand All @@ -11,7 +15,7 @@
"dev": "vite",
"build": "vite build",
"serve": "vite preview",
"test": "vitest"
"test": "vitest run"
},
"exports": {
".": {
Expand Down

0 comments on commit 81b199b

Please sign in to comment.