diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4114353..1b23014 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,9 @@ -name: test +name: Test and release -on: [push] +on: + pull_request: + push: + branches: [ master ] jobs: test: @@ -10,5 +13,24 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - - run: npm ci - - run: npm test \ No newline at end of file + - name: Install + run: npm ci + - name: Test + run: npm test + release: + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + runs-on: ubuntu-latest + needs: [test] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: Install + run: npm ci + - name: Release + run: npx semantic-release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a0ef5e..e69de29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,280 +0,0 @@ -# Change Log - -## [1.8.0] 2019-08-26 -### Bug fixing -- Rewrote the ISSUE_TEMPLATE -- Deleted the copyright comments from all files, we only need to keep them inside our index.js and index.html -- Added script that adds copyrights to the built app -- Renamed all the files from `.jsx` to `.js` -- Changed the `withStyles` function from Material-UI with the `makeStyles` function (integration with other frameworks should now be easy) -- React Hooks is now supported -### Major style changes -- Renamed `assets/jss/material-dashboard-react/layouts/dashboardStyle.js` to `assets/jss/material-dashboard-react/layouts/adminStyle.js` -### Deleted components -### Added components -### Deleted dependencies -### Added dependencies -+ gulp@4.0.2 -+ gulp-append-prepend@1.0.8 -### Updated dependencies -``` -@material-ui/core 4.1.0 → 4.3.2 -@material-ui/icons 4.1.0 → 4.2.1 -react 16.8.6 → 16.9.0 -react-dom 16.8.6 → 16.9.0 -react-scripts 3.0.1 → 3.1.0 -eslint-config-prettier 4.3.0 → 6.0.0 -@types/googlemaps 3.36.4 → 3.37.3 -ajv 6.10.0 → 6.10.2 -typescript 3.5.1 → 3.5.3 -``` - -## [1.7.0] 2019-06-19 -### Warning -**All React Material products have now the same version, i.e. 1.7.0.** -- **All linting errors are solved now, but due to google analytics stuff, we've needed to add target="_blank" to our links, so this lint error still exists.** -### Bug fixing -- Bugs from updated dependencies -- Removed `.env` file, and replaced it with the `jsconfig.json` file -- Changes caused by running [the prettier command](https://prettier.io/docs/en/install.html) for *.jsx*, *.js*, *.html* and *.css* files -- Changed all string refs to `React.createRef()` -- Added types validation in each component -- Solved linting issues -- Solved https://github.com/creativetimofficial/material-dashboard-react/issues/83 -### Major style changes -### Deleted components -### Added components -### Deleted dependencies -### Added dependencies -- typescript@3.5.1 (To stop console warnings on install) -### Updated dependencies -``` -@material-ui/core 3.9.2 → 4.1.0 -@material-ui/icons 3.0.2 → 4.1.0 -chartist 0.10.1 → 0.11.2 -history 4.7.2 → 4.9.0 -prettier 1.16.4 → 1.18.2 -prop-types 15.7.1 → 15.7.2 -react 16.8.1 → 16.8.6 -react-dom 16.8.1 → 16.8.6 -react-router-dom 4.3.1 → 5.0.1 -react-scripts 2.1.5 → 3.0.1 -react-swipeable-views 0.13.1 → 0.13.3 -eslint-config-prettier 4.0.0 → 4.3.0 -eslint-plugin-prettier 3.0.1 → 3.1.0 -@types/googlemaps 3.30.16 → 3.36.4 -ajv 6.9.1 → 6.10.0 -``` - -## [1.6.0] 2019-02-13 -### Nice stuff -- [Added RTL support](https://github.com/creativetimofficial/material-dashboard-react/issues/16) -### Bug Fixing -- [Added new script for npm](https://github.com/creativetimofficial/material-dashboard-react/issues/69) -- Changed our buggy routing system, now it should work flawlessly, for more info, please refer to our [live docs here](https://demos.creative-tim.com/material-dashboard-react/#/documentation/routing-system) -- [https://github.com/creativetimofficial/material-dashboard-react/issues/67](https://github.com/creativetimofficial/material-dashboard-react/issues/67) -- [https://github.com/creativetimofficial/material-dashboard-react/issues/68](https://github.com/creativetimofficial/material-dashboard-react/issues/68) -- [https://github.com/creativetimofficial/material-dashboard-react/issues/66](https://github.com/creativetimofficial/material-dashboard-react/issues/66) -### Major style changes -- Almost all styles have been changed due to new components, solved issues or [the prettier command](https://prettier.io/docs/en/install.html) -### Major components changes -- Changes caused by running [the prettier command](https://prettier.io/docs/en/install.html) for *.jsx*, *.js*, *.html* and *.css* files -- **src/index.js** -- **src/components/CustomTabs/CustomTabs.jsx** -- **src/components/Header/Header.jsx** -- **src/components/Sidebar/Sidebar.jsx** -- **src/components/Snackbar/Snackbar.jsx** -- **src/components/Snackbar/SnackbarContent.jsx** -- **src/components/Tasks/Tasks.jsx** -- **src/views/Notifications/Notifications.jsx** -### New components -- **src/components/FixedPlugin/FixedPlugin.jsx**(Left menu used by us for customization - due to this, we've had to add a link for the fonts awesome cdn) -- **src/components/Header/RTLHeaderLinks.jsx** -- **src/layouts/Admin.jsx** (instead of Dashboard) -- **src/layouts/RTL.jsx** -- **src/views/RTLPage/RTLPage.jsx** -### Deleted components -- **src/layouts/Dashboard/Dashboard.jsx** (renamed to Admin) -- **src/routes/dashboard.jsx** -- **src/routes/index.jsx** -### Deleted dependencies -- `babel-plugin-module-resolver` (because of the upgrade of `react-scripts`) -- `babel-eslint` (because of the upgrade of `react-scripts`) -- `eslint` (because of the upgrade of `react-scripts`) -- `eslint-plugin-react` (because of the upgrade of `react-scripts`) -- `npm-run-all` -### Added dependencies -- `history4.7.2` -- `prop-types@15.6.2` -- `prettier@1.16.4` -### Updated dependencies -- `@material-ui/core` *3.1.0* → **3.9.2** -- `@material-ui/icons` *3.0.1* → **3.0.2** -- `@types/googlemaps` *3.30.13* → **3.30.16** -- `ajv` *^5.0.0* → **6.9.1** -- `prop-types` *15.6.2* → **15.7.1** -- `react` *16.5.2* → **16.8.1** -- `react-chartist` *0.13.1* → **0.13.3** -- `react-dom` *16.5.2* → **16.8.1** -- `react-scripts` *1.1.5* → **2.1.5** -- `react-swipeable-views` *0.12.17* → **0.13.1** -- `eslint-config-prettier` *3.0.1* → **4.0.0** -- `eslint-plugin-prettier` *2.6.2* → **3.0.1** - -## [1.5.0] 2018-09-21 -### Nice stuff -- Added `install:clean` command (deletes `node_modules` and `package-lock.json` and runs `npm install`) -### Major style changes -- `src/assets/jss/material-dashboard-react/components/tasksStyle.jsx` -- `src/assets/jss/material-dashboard-react/checkboxAdnRadioStyle.jsx` -- `src/assets/jss/material-dashboard-react/components/customTabsStyle.jsx` -- `src/assets/jss/material-dashboard-react/components/snackbarContentStyle.jsx` -### Deleted dependencies -- `@babel/runtime v7.0.0-beta.55` -### Added dependencies -### Updated dependencies -- `@material-ui/core` *1.4.3* → **3.1.0** -- `@material-ui/icons` *2.0.1* → **3.0.1** -- `@types/googlemaps` *3.30.11* → **3.30.13** -- `ajv` *6.5.2* → **5.0.0** (to stop some warnings) -- `react` *16.4.1* → **16.5.2** -- `react-dom` *16.4.1* → **16.5.2** -- `react-scripts` *1.1.4* → **1.1.5** -- `react-swipeable-views` *0.12.15* → **0.12.17** -- `eslint-config-prettier` *^2.9.0* → **3.0.1** -- `eslint-plugin-react` *^7.10.0* → **7.11.1** -- `prettier` *^1.13.7* → **1.14.3** - -## [1.4.1] 2018-08-10 -### Bug Fixing -- Github solved issues: - - `https://github.com/creativetimofficial/material-dashboard-react/issues/58` -- Changed the `GridContainer` component -### Major style changes -- `src/assets/jss/material-dashboard-react/components/footerStyle.jsx` -- `src/assets/jss/material-dashboard-react/components/headerStyle.jsx` -### Added dependencies -- `@babel/runtime v7.0.0-beta.55` -### Update dependencies -- `@material-ui/core v1.4.1` to `@material-ui/core v1.4.3` -- `@material-ui/icons v2.0.0` to `@material-ui/icons v2.0.1` - - -## [1.4.0] 2018-07-26 -### Bug Fixing -- Added resize event listener for window ([see this issue here](https://github.com/creativetimofficial/ct-material-dashboard-pro-react/issues/40#issuecomment-406983150)) -- Added issues template file -- Github solved issues: - - https://github.com/creativetimofficial/material-dashboard-react/issues/49 (dropped `react-popper` in favour of `@material-ui/core/Popper`) - - https://github.com/creativetimofficial/material-dashboard-react/issues/47 - - https://github.com/creativetimofficial/material-dashboard-react/issues/45 - - https://github.com/creativetimofficial/material-dashboard-react/issues/38 - - https://github.com/creativetimofficial/material-dashboard-react/issues/37 -- Github enhancement issues: - - https://github.com/creativetimofficial/material-dashboard-react/issues/47 (read the [./README.md](./README.md) file) -### Major style changes -- Added styles for `svg`'s, **font-awesome** classes and `.material-icons` class inside - - `src/assets/jss/material-dashboard-react/views/dashboardStyle.jsx` - - `src/assets/jss/material-dashboard-react/components/buttonStyle.jsx` - - `src/assets/jss/material-dashboard-react/components/cardFooterStyle.jsx` - - `src/assets/jss/material-dashboard-react/components/cardHeaderStyle.jsx` - - `src/assets/jss/material-dashboard-react/components/headerLinksStyle.jsx` - - `src/assets/jss/material-dashboard-react/components/customTabsStyle.jsx` -- Others - - `src/assets/jss/material-dashboard-react/tooltipStyle.jsx` - - `src/assets/jss/material-dashboard-react/dropdownStyle.jsx` -### Dropped components -- Dropped popper usage in favour of `@material-ui/core/Popper` (Changes in `src/components/Header/HeaderLinks.jsx`) -### Added components -- `src/components/Grid/GridContainer.jsx` (instead of MUI's `