@dexma/ui-components 6.8.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +38 -36
- package/dist/index.d.ts +1 -0
- package/dist/lib/components/Alert/Alert.d.ts +13 -0
- package/dist/lib/components/Alert/index.d.ts +1 -0
- package/dist/lib/components/Button/Button.d.ts +50 -0
- package/dist/lib/components/Button/index.d.ts +1 -0
- package/dist/lib/components/Card/Card.d.ts +17 -0
- package/dist/lib/components/Card/index.d.ts +1 -0
- package/dist/lib/components/Cascader/Cascader.d.ts +19 -0
- package/dist/lib/components/Cascader/index.d.ts +1 -0
- package/dist/lib/components/Cell/Cell.d.ts +17 -0
- package/dist/lib/components/Cell/index.d.ts +1 -0
- package/dist/lib/components/Chart/Chart.d.ts +23 -0
- package/dist/lib/components/Chart/index.d.ts +1 -0
- package/dist/lib/components/Chart/types.d.ts +24 -0
- package/dist/lib/components/Checkbox/Checkbox.d.ts +9 -0
- package/dist/lib/components/Checkbox/index.d.ts +1 -0
- package/dist/lib/components/ColorPicker/ColorPicker.d.ts +15 -0
- package/dist/lib/components/ColorPicker/index.d.ts +1 -0
- package/dist/lib/components/DataId/DataIdProvider.d.ts +10 -0
- package/dist/lib/components/DataId/withDataId.d.ts +7 -0
- package/dist/lib/components/DatePicker/DatePicker.d.ts +24 -0
- package/dist/lib/components/DatePicker/datePickerUtils.d.ts +3 -0
- package/dist/lib/components/DatePicker/index.d.ts +1 -0
- package/dist/lib/components/Divider/Divider.d.ts +6 -0
- package/dist/lib/components/Divider/index.d.ts +1 -0
- package/dist/lib/components/Dots/Dots.d.ts +5 -0
- package/dist/lib/components/Dots/index.d.ts +1 -0
- package/dist/lib/components/Dropdown/Dropdown.d.ts +19 -0
- package/dist/lib/components/Dropdown/index.d.ts +1 -0
- package/dist/lib/components/FieldGroup/FieldGroup.d.ts +62 -0
- package/dist/lib/components/FieldGroup/index.d.ts +1 -0
- package/dist/lib/components/FormControl/FormControl.d.ts +35 -0
- package/dist/lib/components/FormControl/index.d.ts +1 -0
- package/dist/lib/components/Gauge/Gauge.d.ts +234 -0
- package/dist/lib/components/Gauge/index.d.ts +1 -0
- package/dist/lib/components/Grid/Grid.d.ts +5 -0
- package/dist/lib/components/Grid/index.d.ts +1 -0
- package/dist/lib/components/Heading/Heading.d.ts +10 -0
- package/dist/lib/components/Heading/index.d.ts +1 -0
- package/dist/lib/components/Icon/Icon.d.ts +17 -0
- package/dist/lib/components/Icon/index.d.ts +1 -0
- package/dist/lib/components/Input/Input.d.ts +17 -0
- package/dist/lib/components/Input/index.d.ts +1 -0
- package/dist/lib/components/Loading/Loading.d.ts +10 -0
- package/dist/lib/components/Loading/index.d.ts +1 -0
- package/dist/lib/components/Modal/Modal.d.ts +3 -0
- package/dist/lib/components/Modal/index.d.ts +1 -0
- package/dist/lib/components/Pagination/Pagination.d.ts +6 -0
- package/dist/lib/components/Pagination/index.d.ts +1 -0
- package/dist/lib/components/Paragraph/Paragraph.d.ts +9 -0
- package/dist/lib/components/Paragraph/index.d.ts +1 -0
- package/dist/lib/components/Popover/Popover.d.ts +6 -0
- package/dist/lib/components/Popover/index.d.ts +1 -0
- package/dist/lib/components/Progress/Progress.d.ts +12 -0
- package/dist/lib/components/Progress/index.d.ts +1 -0
- package/dist/lib/components/Result/Result.d.ts +20 -0
- package/dist/lib/components/Result/index.d.ts +1 -0
- package/dist/lib/components/Row/Row.d.ts +8 -0
- package/dist/lib/components/Row/index.d.ts +1 -0
- package/dist/lib/components/Section/Section.d.ts +15 -0
- package/dist/lib/components/Section/index.d.ts +1 -0
- package/dist/lib/components/Select/ButtonPaginationSelector.d.ts +18 -0
- package/dist/lib/components/Select/Select.d.ts +58 -0
- package/dist/lib/components/Select/index.d.ts +1 -0
- package/dist/lib/components/Select/selectUtils.d.ts +21 -0
- package/dist/lib/components/Spinner/Spinner.d.ts +4 -0
- package/dist/lib/components/Spinner/index.d.ts +1 -0
- package/dist/lib/components/Switch/Switch.d.ts +19 -0
- package/dist/lib/components/Switch/index.d.ts +1 -0
- package/dist/lib/components/SwitchPeriodComparative/SwitchPeriodComparative.d.ts +24 -0
- package/dist/lib/components/SwitchPeriodComparative/index.d.ts +1 -0
- package/dist/lib/components/Table/Table.d.ts +16 -0
- package/dist/lib/components/Table/index.d.ts +1 -0
- package/dist/lib/components/Tabs/Tabs.d.ts +16 -0
- package/dist/lib/components/Tabs/index.d.ts +1 -0
- package/dist/lib/components/Tag/Tag.d.ts +22 -0
- package/dist/lib/components/Tag/index.d.ts +1 -0
- package/dist/lib/components/TagGroup/TagGroup.d.ts +7 -0
- package/dist/lib/components/TagGroup/index.d.ts +1 -0
- package/dist/lib/components/Theme/Theme.d.ts +8 -0
- package/dist/lib/components/Theme/index.d.ts +1 -0
- package/dist/lib/components/Toaster/Toast.d.ts +12 -0
- package/dist/lib/components/Toaster/Toaster.d.ts +7 -0
- package/dist/lib/components/Toaster/ToasterContext.d.ts +11 -0
- package/dist/lib/components/Toaster/index.d.ts +3 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +8 -0
- package/dist/lib/components/Tooltip/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts +42 -0
- package/dist/lib/index.d.ts +5 -0
- package/dist/lib/styles/Alert/StyledAlert.d.ts +12 -0
- package/dist/lib/styles/Button/StyledButton.d.ts +44 -0
- package/dist/lib/styles/Card/StyledCard.d.ts +14 -0
- package/dist/lib/styles/Cascader/StyledCascader.d.ts +11 -0
- package/dist/lib/styles/Cell/StyledCell.d.ts +16 -0
- package/dist/lib/styles/Chart/StyledChart.d.ts +3 -0
- package/dist/lib/styles/ColorPicker/StyledColorPicker.d.ts +50 -0
- package/dist/lib/styles/DatePicker/StyledDatePicker.d.ts +25 -0
- package/dist/lib/styles/Divider/StyledDivider.d.ts +7 -0
- package/dist/lib/styles/Dots/StyledDots.d.ts +10 -0
- package/dist/lib/styles/Dropdown/StyledDropdown.d.ts +88 -0
- package/dist/lib/styles/Fieldgroup/StyledFieldGroup.d.ts +16 -0
- package/dist/lib/styles/FromControl/StyledFormControl.d.ts +5 -0
- package/dist/lib/styles/Grid/StyledGrid.d.ts +7 -0
- package/dist/lib/styles/Heading/StyledHeading.d.ts +8 -0
- package/dist/lib/styles/Icon/StyledIcon.d.ts +5 -0
- package/dist/lib/styles/Input/StyledInput.d.ts +11 -0
- package/dist/lib/styles/Loading/StyledLoading.d.ts +2 -0
- package/dist/lib/styles/Modal/StyledModal.d.ts +14 -0
- package/dist/lib/styles/Pagination/StyledPagination.d.ts +7 -0
- package/dist/lib/styles/Paragraph/StyledParagraph.d.ts +9 -0
- package/dist/lib/styles/Progress/StyledProgress.d.ts +14 -0
- package/dist/lib/styles/Result/StyledResult.d.ts +10 -0
- package/dist/lib/styles/Row/StyledRow.d.ts +8 -0
- package/dist/lib/styles/Section/StyledSection.d.ts +9 -0
- package/dist/lib/styles/Select/StyledSelect.d.ts +98 -0
- package/dist/lib/styles/Spinner/StyledSpinner.d.ts +9 -0
- package/dist/lib/styles/Switch/StyledSwitch.d.ts +2 -0
- package/dist/lib/styles/SwitchPeriodComparative/StyledSwitchPeriodComparative.d.ts +7 -0
- package/dist/lib/styles/Table/StyledTable.d.ts +7 -0
- package/dist/lib/styles/Tabs/StyledTabs.d.ts +9 -0
- package/dist/lib/styles/Tag/StyledTag.d.ts +14 -0
- package/dist/lib/styles/TagGroup/StyledTagGroup.d.ts +6 -0
- package/dist/lib/styles/Toast/StyledToast.d.ts +2 -0
- package/dist/lib/utils/animation.d.ts +13 -0
- package/dist/lib/utils/dates.d.ts +29 -0
- package/dist/lib/utils/formatter.d.ts +2 -0
- package/dist/lib/utils/global.d.ts +4 -0
- package/dist/lib/utils/selectors.d.ts +113 -0
- package/dist/lib/utils/theme.d.ts +85 -0
- package/dist/ui-components.es.js +72660 -0
- package/dist/ui-components.umd.js +4967 -0
- package/package.json +42 -137
- package/.github/workflows/cd.yml +0 -36
- package/.github/workflows/ci.yml +0 -45
- package/CHANGELOG.md +0 -1556
- package/CONTRIBUTING.md +0 -154
- package/dist/main.bundle.js +0 -253
- package/dist/main.bundle.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,22 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexma/ui-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "DEXMA UI Components (React)",
|
|
5
|
-
"main": "dist/
|
|
5
|
+
"main": "./dist/ui-components.umd.js",
|
|
6
|
+
"module": "./dist/ui-components.es.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/ui-components.es.js",
|
|
12
|
+
"require": "./dist/ui-components.umd.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": "18"
|
|
17
|
+
},
|
|
6
18
|
"scripts": {
|
|
19
|
+
"build": "npm run build-icons && tsc && vite build",
|
|
20
|
+
"build-storybook": "npm run build-icons && storybook build -o docs",
|
|
21
|
+
"build-icons": "node scripts/buildIconConfig.js",
|
|
7
22
|
"clean-build": "rm -rf dist",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"storybook": "npm run build:icons && storybook dev -c src/.storybook",
|
|
13
|
-
"prettier": "prettier --write '{src,test}/{,**/{,*.}}*.js'",
|
|
14
|
-
"eslint": "eslint '{src,test}/{,**/{,*.}}*.js'",
|
|
15
|
-
"eslint:fix": "eslint --fix '{src,test}/{,**/{,*.}}*.js'",
|
|
23
|
+
"coverage": "vitest run --coverage && npx serve coverage",
|
|
24
|
+
"lint": "eslint --ext .js,.jsx,.ts,.tsx --fix",
|
|
25
|
+
"test": "npm run build-icons && vitest run --coverage",
|
|
26
|
+
"test:ui": "npm run build-icons && vitest --ui --config vitest-ui.config.mts",
|
|
16
27
|
"format": "npm run eslint:fix && npm run prettier",
|
|
17
|
-
"
|
|
28
|
+
"prettier": "prettier -w \"{src,test}/**/*.+(ts|tsx|json|mdx)\"",
|
|
29
|
+
"eslint": "eslint \"{src,test}/**/*.+(ts|tsx)\"",
|
|
30
|
+
"eslint:fix": "eslint --fix \"{src,test}/**/*.+(ts|tsx)\"",
|
|
31
|
+
"prepare": "husky install",
|
|
32
|
+
"prepack": "json -f package.json -I -e \"delete this.devDependencies; delete this.dependencies\"",
|
|
18
33
|
"semantic-release": "semantic-release",
|
|
19
|
-
"
|
|
34
|
+
"storybook": "npm run build-icons && storybook dev -p 6006"
|
|
20
35
|
},
|
|
21
36
|
"publishConfig": {
|
|
22
37
|
"tag": "latest"
|
|
@@ -38,8 +53,16 @@
|
|
|
38
53
|
]
|
|
39
54
|
]
|
|
40
55
|
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"antd": "5.5.1",
|
|
58
|
+
"highcharts": "^11.3.0",
|
|
59
|
+
"moment": "^2.30.1",
|
|
60
|
+
"react": "^18.2.0",
|
|
61
|
+
"react-dom": "^18.2.0",
|
|
62
|
+
"styled-components": "^6.1.11"
|
|
63
|
+
},
|
|
41
64
|
"lint-staged": {
|
|
42
|
-
"
|
|
65
|
+
"*.{ts,tsx,js,jsx,json,css,md}": [
|
|
43
66
|
"npm run format"
|
|
44
67
|
]
|
|
45
68
|
},
|
|
@@ -58,135 +81,17 @@
|
|
|
58
81
|
"utils",
|
|
59
82
|
"react"
|
|
60
83
|
],
|
|
61
|
-
"author": "
|
|
84
|
+
"author": "Spacewell Energy",
|
|
62
85
|
"license": "MIT",
|
|
63
86
|
"bugs": {
|
|
64
87
|
"url": "https://github.com/dexma/ui-components/issues"
|
|
65
88
|
},
|
|
66
89
|
"homepage": "https://github.com/dexma/ui-components#readme",
|
|
67
|
-
"devDependencies": {
|
|
68
|
-
"@babel/cli": "^7.2.3",
|
|
69
|
-
"@babel/core": "^7.4.0",
|
|
70
|
-
"@babel/plugin-proposal-class-properties": "^7.4.0",
|
|
71
|
-
"@babel/plugin-transform-runtime": "^7.12.1",
|
|
72
|
-
"@babel/polyfill": "^7.4.0",
|
|
73
|
-
"@babel/preset-env": "^7.4.2",
|
|
74
|
-
"@babel/preset-react": "^7.0.0",
|
|
75
|
-
"@semantic-release/changelog": "^6.0.1",
|
|
76
|
-
"@semantic-release/git": "^10.0.1",
|
|
77
|
-
"@storybook/addon-a11y": "^7.0.5",
|
|
78
|
-
"@storybook/addon-actions": "^7.0.5",
|
|
79
|
-
"@storybook/addon-docs": "^7.0.5",
|
|
80
|
-
"@storybook/addon-jest": "^7.0.5",
|
|
81
|
-
"@storybook/addon-controls": "^7.0.0",
|
|
82
|
-
"@storybook/addon-links": "^7.0.5",
|
|
83
|
-
"@storybook/addon-mdx-gfm": "^7.0.5",
|
|
84
|
-
"@storybook/addons": "^7.0.5",
|
|
85
|
-
"@storybook/react": "^7.0.5",
|
|
86
|
-
"@storybook/react-webpack5": "^7.0.5",
|
|
87
|
-
"@storybook/source-loader": "^7.0.5",
|
|
88
|
-
"@testing-library/jest-dom": "^5.11.6",
|
|
89
|
-
"@testing-library/react": "^11.2.2",
|
|
90
|
-
"antd": "^5.5.1",
|
|
91
|
-
"autoprefixer": "^9.5.0",
|
|
92
|
-
"babel-eslint": "^10.0.1",
|
|
93
|
-
"babel-jest": "^26.6.0",
|
|
94
|
-
"babel-loader": "^8.0.5",
|
|
95
|
-
"babel-plugin-styled-components": "^2.0.7",
|
|
96
|
-
"classnames": "^2.2.6",
|
|
97
|
-
"core-js": "^3.6.5",
|
|
98
|
-
"css-loader": "^2.1.1",
|
|
99
|
-
"cssnano": "^4.1.10",
|
|
100
|
-
"deep-equal": "^1.0.1",
|
|
101
|
-
"enzyme": "^3.11.0",
|
|
102
|
-
"enzyme-adapter-react-16": "^1.11.2",
|
|
103
|
-
"eslint": "^6.0.0",
|
|
104
|
-
"eslint-config-airbnb": "^18.1.0",
|
|
105
|
-
"eslint-config-prettier": "^4.1.0",
|
|
106
|
-
"eslint-plugin-import": "^2.16.0",
|
|
107
|
-
"eslint-plugin-jsx-a11y": "^6.2.1",
|
|
108
|
-
"eslint-plugin-prettier": "^3.0.1",
|
|
109
|
-
"eslint-plugin-react": "^7.12.4",
|
|
110
|
-
"file-loader": "^3.0.1",
|
|
111
|
-
"highcharts": "^7.1.1",
|
|
112
|
-
"hoist-non-react-statics": "^3.3.2",
|
|
113
|
-
"husky": "^4.3.0",
|
|
114
|
-
"identity-obj-proxy": "^3.0.0",
|
|
115
|
-
"jest": "^26.6.3",
|
|
116
|
-
"jest-axe": "^4.1.0",
|
|
117
|
-
"lint-staged": "^8.2.0",
|
|
118
|
-
"lodash": "^4.17.20",
|
|
119
|
-
"mini-css-extract-plugin": "^0.5.0",
|
|
120
|
-
"moment": "^2.29.1",
|
|
121
|
-
"optimize-css-assets-webpack-plugin": "^5.0.1",
|
|
122
|
-
"patch-package": "^6.5.1",
|
|
123
|
-
"path": "^0.12.7",
|
|
124
|
-
"polished": "^3.4.0",
|
|
125
|
-
"postcss-loader": "^3.0.0",
|
|
126
|
-
"postcss-safe-parser": "^4.0.1",
|
|
127
|
-
"prettier": "^1.16.4",
|
|
128
|
-
"prop-types": "^15.7.2",
|
|
129
|
-
"rc-tabs": "^9.7.0",
|
|
130
|
-
"react": "^16.14.0",
|
|
131
|
-
"react-copy-to-clipboard": "^5.0.2",
|
|
132
|
-
"react-dates": "^21.8.0",
|
|
133
|
-
"react-dom": "^16.14.0",
|
|
134
|
-
"react-moment-proptypes": "^1.6.0",
|
|
135
|
-
"react-router-dom": "^5.0.0",
|
|
136
|
-
"react-select": "^3.0.0",
|
|
137
|
-
"react-tippy": "^1.3.1",
|
|
138
|
-
"semantic-release": "^18.0.0",
|
|
139
|
-
"storybook": "^7.0.5",
|
|
140
|
-
"style-loader": "^0.23.1",
|
|
141
|
-
"styled-components": ">=5.0.0",
|
|
142
|
-
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
143
|
-
"uuid": "^8.3.1",
|
|
144
|
-
"webpack": "^5.79.0",
|
|
145
|
-
"webpack-cli": "^4.0.0",
|
|
146
|
-
"xmldom": "^0.5.0"
|
|
147
|
-
},
|
|
148
|
-
"jest": {
|
|
149
|
-
"moduleNameMapper": {
|
|
150
|
-
"\\.(jpg|jpeg|png|gif|svg)$": "test-file-stub",
|
|
151
|
-
"\\.(css|less|s?css)$": "identity-obj-proxy"
|
|
152
|
-
},
|
|
153
|
-
"moduleDirectories": [
|
|
154
|
-
"node_modules",
|
|
155
|
-
"src"
|
|
156
|
-
],
|
|
157
|
-
"verbose": true,
|
|
158
|
-
"collectCoverage": true,
|
|
159
|
-
"coverageReporters": [
|
|
160
|
-
"lcov"
|
|
161
|
-
],
|
|
162
|
-
"collectCoverageFrom": [
|
|
163
|
-
"test/components/*.{js,jsx}",
|
|
164
|
-
"!<rootDir>/node_modules/",
|
|
165
|
-
"!dist/"
|
|
166
|
-
],
|
|
167
|
-
"setupFilesAfterEnv": [
|
|
168
|
-
"<rootDir>/test/config/tests-setup.js"
|
|
169
|
-
],
|
|
170
|
-
"transformIgnorePatterns": [
|
|
171
|
-
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
|
|
172
|
-
],
|
|
173
|
-
"reporters": [
|
|
174
|
-
"default"
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
"dependencies": {
|
|
178
|
-
"@storybook/addon-controls": "^7.0.5",
|
|
179
|
-
"dayjs": "^1.11.7",
|
|
180
|
-
"highcharts-react-official": "^3.1.0",
|
|
181
|
-
"highcharts-rounded-corners": "^1.0.6",
|
|
182
|
-
"react-color": "^2.19.3"
|
|
183
|
-
},
|
|
184
90
|
"volta": {
|
|
185
|
-
"node": "
|
|
186
|
-
"npm": "
|
|
91
|
+
"node": "18.20.3",
|
|
92
|
+
"npm": "10.7.0"
|
|
187
93
|
},
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
|
|
191
|
-
}
|
|
94
|
+
"files": [
|
|
95
|
+
"dist"
|
|
96
|
+
]
|
|
192
97
|
}
|
package/.github/workflows/cd.yml
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
name: Build and Deploy
|
|
2
|
-
on:
|
|
3
|
-
workflow_dispatch:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
paths:
|
|
8
|
-
- '**/assets/**'
|
|
9
|
-
- '**/stories/**'
|
|
10
|
-
- '**/components/**'
|
|
11
|
-
- '**/styles/**'
|
|
12
|
-
jobs:
|
|
13
|
-
build-and-deploy:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
permissions:
|
|
16
|
-
actions: write
|
|
17
|
-
contents: write
|
|
18
|
-
deployments: write
|
|
19
|
-
steps:
|
|
20
|
-
- name: Checkout 🛎️
|
|
21
|
-
uses: actions/checkout@v3
|
|
22
|
-
|
|
23
|
-
- name: Use Node.js v16.18.0
|
|
24
|
-
uses: actions/setup-node@v2
|
|
25
|
-
with:
|
|
26
|
-
node-version: '16.18.0'
|
|
27
|
-
|
|
28
|
-
- name: Install and Build 🔧
|
|
29
|
-
run: | # Install npm packages and build the Storybook files
|
|
30
|
-
npm install -legacy-peer-deps
|
|
31
|
-
npm run build-storybook
|
|
32
|
-
|
|
33
|
-
- name: Deploy 🚀
|
|
34
|
-
uses: JamesIves/github-pages-deploy-action@v4
|
|
35
|
-
with:
|
|
36
|
-
folder: docs # The folder the action should deploy.
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
pull_request:
|
|
8
|
-
branches:
|
|
9
|
-
- master
|
|
10
|
-
|
|
11
|
-
env:
|
|
12
|
-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
13
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
14
|
-
|
|
15
|
-
jobs:
|
|
16
|
-
build:
|
|
17
|
-
runs-on: ubuntu-latest
|
|
18
|
-
|
|
19
|
-
permissions:
|
|
20
|
-
actions: write
|
|
21
|
-
contents: write
|
|
22
|
-
deployments: write
|
|
23
|
-
|
|
24
|
-
steps:
|
|
25
|
-
- name: Checkout code
|
|
26
|
-
uses: actions/checkout@v3
|
|
27
|
-
|
|
28
|
-
- name: Use Node.js v16.18.0
|
|
29
|
-
uses: actions/setup-node@v2
|
|
30
|
-
with:
|
|
31
|
-
node-version: '16.18.0'
|
|
32
|
-
|
|
33
|
-
- name: Install dependencies 🛠️
|
|
34
|
-
run: npm install -legacy-peer-deps
|
|
35
|
-
|
|
36
|
-
- name: Run tests 📝
|
|
37
|
-
run: npm run test
|
|
38
|
-
|
|
39
|
-
- name: Build project ⚙️
|
|
40
|
-
run: npm run build
|
|
41
|
-
|
|
42
|
-
- name: Publish to NPM 📦
|
|
43
|
-
run: npx semantic-release
|
|
44
|
-
env:
|
|
45
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|