Skip to content

Commit 68e58ed

Browse files
authored
Merge pull request #94 from kouts/update_node_and_npm_packages
Update node and npm packages
2 parents 3e0202a + 0e5d5cf commit 68e58ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+19045
-235
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release-master
1+
name: release
22

33
on:
44
push:
@@ -11,37 +11,71 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
node: [16]
1514

1615
steps:
1716
- name: Checkout 🛎
18-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1918
with:
2019
fetch-depth: 0
2120

2221
- name: Setup node env 🏗
23-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2423
with:
25-
node-version: ${{ matrix.node }}
24+
node-version-file: '.nvmrc'
2625
check-latest: true
2726

28-
- name: Install dependencies 📦
29-
run: npm install
27+
- name: Setup pnpm 📦
28+
uses: pnpm/action-setup@v4
29+
with:
30+
package_json_file: package.json
3031

31-
- name: Install semantic-release extra plugins 📦
32-
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
32+
- name: Install dependencies 📦
33+
run: pnpm install
3334

3435
- name: Run linter 👀
35-
run: npm run lint-fix
36+
run: pnpm run lint-fix
3637

3738
- name: Run tests 🧪
38-
run: npm run test:unit-coverage --if-present
39+
run: pnpm run test:unit-coverage --if-present
3940

4041
- name: Build
41-
run: npm run build
42+
run: pnpm run build
43+
release:
44+
runs-on: ${{ matrix.os }}
45+
needs: ci
46+
47+
permissions:
48+
id-token: write
49+
contents: write
50+
51+
strategy:
52+
matrix:
53+
os: [ubuntu-latest]
54+
55+
steps:
56+
- name: Checkout 🛎
57+
uses: actions/checkout@v4
58+
with:
59+
fetch-depth: 0
60+
61+
- name: Setup node env 🏗
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version-file: '.nvmrc'
65+
check-latest: true
66+
67+
- name: Setup pnpm 📦
68+
uses: pnpm/action-setup@v4
69+
with:
70+
package_json_file: package.json
71+
72+
- name: Install dependencies 📦
73+
run: pnpm install
74+
75+
- name: Install semantic-release extra plugins 📦
76+
run: pnpm install --save-dev semantic-release @semantic-release/changelog @semantic-release/git
4277

4378
- name: Release
4479
env:
4580
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47-
run: npx semantic-release@19.0.5
81+
run: npx semantic-release

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16
1+
v24

PACKAGES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
`@vue/cli-service ^4.5.19 → ^5.0.8`
99
Webpack 4 is needed for Vuepress 1 compatibility
1010

11-
- `@vue/test-utils ^1.3.5 → ^2.2.1`
11+
- `@vue/test-utils ^1.3.6 → ^2.2.1`
1212
Needed for Webpack 4 / Vuepress 1 compatibility
1313

1414
- `@vue/vue2-jest ^27.0.0 → ^29.2.0`
@@ -20,8 +20,8 @@
2020
- `rollup-plugin-vue ^5.1.9 → ^6.0.0`
2121
Needed for Vue 2 compatibility
2222

23-
- `sass-loader ^10.4.1 → ^13.1.0`
23+
- `sass-loader ^10.5.2 → ^13.1.0`
2424
Needed for Webpack 4 / Vuepress 1 compatibility
2525

26-
- `vue ^2.7.14 → ^3.2.41`
26+
- `vue ^2.7.16 → ^3.2.41`
2727
Needed for IE11 compatibility

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ If you're looking for a Vue.js 3 compatible version of vue-modal, [please check
99
---
1010

1111
> vue-modal is designed with web applications in mind and tries to stick as much as possible
12-
> to the accessibility best practices set in the [WAI-ARIA Dialog (Modal)](https://www.w3.org/TR/wai-aria-practices/#dialog_modal) section
12+
> to the accessibility best practices set in the [WAI-ARIA Dialog (Modal)](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/) section
1313
> of W3C.
1414
1515

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ['@vue/cli-plugin-babel/preset']
2+
presets: ['@vue/cli-plugin-babel/preset'],
33
}

commitlint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
extends: ['@commitlint/config-conventional'],
33
rules: {
4-
'body-max-line-length': () => [1, 'always', 200]
5-
}
4+
'body-max-line-length': () => [1, 'always', 200],
5+
},
66
}

dist/vue-modal.es.js

Lines changed: 20 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-modal.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)