Skip to content

Commit

Permalink
Merge pull request #32 from lecoueyl/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
lecoueyl authored Jan 12, 2022
2 parents 4f9cd1e + 4187735 commit cc8cb9b
Show file tree
Hide file tree
Showing 5 changed files with 12,629 additions and 26 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,27 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
node: [16]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@master

- name: Setup node env
uses: actions/setup-node@v2.1.2
- name: Setup PNPM
uses: pnpm/action-setup@v2.0.1
with:
node-version: ${{ matrix.node }}
version: 6.25.1

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm i

- name: Run test
run: npm run test
run: pnpm run test
22 changes: 14 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,39 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
node: [16]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@master

- name: Setup node env
uses: actions/setup-node@v2.1.2
- name: Setup PNPM
uses: pnpm/action-setup@v2.0.1
with:
node-version: ${{ matrix.node }}
version: 6.25.1

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Run test
run: npm run test
run: pnpm run test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

- name: Build
run: npm run build
run: pnpm run build

- name: Release
run: npm run semantic-release
run: pnpm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"build": "npm run build:vue && npm run build:tailwind",
"build": "pnpm run build:vue && pnpm run build:tailwind",
"build:vue": "vue-cli-service build src/index.js --target lib --name mijin && rm ./dist/demo.html",
"build:tailwind": "rimraf dist/tailwind-preset.js && rollup --config rollup.config.js",
"lint": "vue-cli-service lint",
"test": "npm run test:unit",
"test": "pnpm run test:unit",
"test:unit": "vue-cli-service test:unit",
"semantic-release": "semantic-release"
},
Expand All @@ -50,14 +50,15 @@
"@vue/eslint-config-airbnb": "^5.3.0",
"@vue/test-utils": "^1.2.2",
"babel-eslint": "^10.1.0",
"core-js": "^3.20.2",
"eslint": "^6.8.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-vue": "^7.18.0",
"feather-icons": "^4.28.0",
"husky": "^7.0.2",
"pinst": "^2.1.6",
"rimraf": "^3.0.2",
"rollup": "^2.57.0",
"rollup": "^2.63.0",
"semantic-release": "^17.4.7",
"tailwindcss": "^2.2.19",
"vue": "^2.6.14",
Expand Down
Loading

0 comments on commit cc8cb9b

Please sign in to comment.