Skip to content

Commit

Permalink
feat: semantic release added (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKonings authored Jun 2, 2020
1 parent 92bac34 commit c952e83
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 286 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: test
name: Test and release

on: [push]
on:
pull_request:
push:
branches: [ master ]

jobs:
test:
Expand All @@ -10,5 +13,24 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
- 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 }}
280 changes: 0 additions & 280 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
+ [email protected]
+ [email protected]
### 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
- [email protected] (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`
- `[email protected]`
- `[email protected]`
### 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 `<Grid container...` component)
### Deleted dependencies
### Added dependencies
### Update dependencies
- `@material-ui/core v1.2.1` to `@material-ui/core v1.4.1`
- `@material-ui/icons v1.1.0` to `@material-ui/icons v2.0.0`
- `@types/googlemaps v3.30.9` to `@types/googlemaps v3.30.11`
- `ajv v6.5.1` to `ajv v6.5.2`
- `react v16.4.0` to `react v16.4.1`
- `react-dom v16.4.0` to `react-dom v16.4.1`
- `react-swipeable-views v0.12.13` to `react-swipeable-views v0.12.15`


## [1.3.0] 2018-06-15
### Bug Fixing
- Changed import from `material-ui` to `@material-ui/core`
- Droped `src/components/index.js`, and changed all the imports to separate ones
- Renamed `ItemGrid` to `GridItem`
### Major style changes
- Moved the styles of `src/components/` inside `src/assets/jss/material-dashboard-react/components/`
- Moved the styles of `src/layouts/` inside `src/assets/jss/material-dashboard-react/layouts/`
- Moved the styles of `src/views/` inside `src/assets/jss/material-dashboard-react/views/`
- Almost all styles have been changed more or less
### Dropped components
- `src/components/CustomButtons/IconButton.jsx` (instead use `src/components/CustomButtons/Button.jsx` with `justIcon` prop)
- Some components from `src/components/Typography` (instead of these we've added some css to style the normal HTML tags)
- `src/components/Typography/A.jsx`
- `src/components/Typography/P.jsx`
- `src/components/Typography/Small.jsx`
- All the cards from `src/components/Cards`
- `src/components/Cards/ChartCard.jsx`
- `src/components/Cards/ProfileCard.jsx`
- `src/components/Cards/RegularCard.jsx`
- `src/components/Cards/StatsCard.jsx`
- `src/components/Cards/TasksCard.jsx`
### Added components
- New card components (`src/components/Card/*`) instead of `src/components/Cards/*`
- `src/components/Card/Card.jsx`
- `src/components/Card/CardAvatar.jsx`
- `src/components/Card/CardBody.jsx`
- `src/components/Card/CardFooter.jsx`
- `src/components/Card/CardHeader.jsx`
- `src/components/Card/CardIcon.jsx`
- `src/components/CustomTabs/CustomTabs.jsx` (instead of `src/components/Cards/TasksCard.jsx`)
### Deleted dependencies
- `[email protected]`
### Added dependencies
- `@material-ui/[email protected]` (instead of `[email protected]`)
- `@types/[email protected]` to stop the warning: **npm WARN [email protected] requires a peer of @types/googlemaps@^3.0.0 but none is installed. You must install peer dependencies yourself.**
- `@types/[email protected]` to stop the warning: **npm WARN [email protected] requires a peer of @types/markerclustererplus@^2.1.29 but none is installed. You must install peer dependencies yourself.**
- `[email protected]` to stop the warning: **npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.**
### Update dependencies
- `@material-ui/[email protected]` to `@material-ui/[email protected]`
- `[email protected]` to `[email protected]`
- `[email protected]` to `[email protected]`
- `[email protected]` to `[email protected]`
- `[email protected]` to `[email protected]`
- `[email protected]` to `[email protected]`
- `[email protected]` to `[email protected]`
- `[email protected]` to `[email protected]`
- `[email protected]` to `[email protected]`

## [1.2.0] 2018-04-16
### Bug Fixing
- Renamed `src/containers/App/App.jsx` to `src/layouts/Dashboard/Dashboard.jsx`
- Renamed `src/variables/styles.jsx` to `src/assets/jss/material-dashboard-react.jsx`
- Moved all the files from `src/variables/styles/` to `src/assets/jss/material-dashboard-react/`
- Changes caused by the upgrade of `material-ui`
- Small bug fixing
### Deleted dependencies
- `[email protected]`
### Update dependencies
- `[email protected]` to `[email protected]`
### Added dependencies
- `@material-ui/[email protected]`

## [1.1.0] 2018-02-23
### Bug Fixing
- PerfectScrollbar renders only on windows
- Used [pretier](https://github.com/prettier/prettier) to make the code more readable
- Optimized images sizes
- Changed `classes={root:...}` to `classNames={...}` only where it had `classes={root:...}` and not like `classes={root:..., something:... ,...}`
- Added `classnames()` to avoid doing brittle class name manipulation
- Classes that do not need states were converted to functions
- Moved the style variables in `src/variables/styles.jsx` and all the components styles in `src/variables/styles/{$componentNameStyle}.jsx` files
- Added `-webkit-overflow-scrolling: touch` css for nice scrolling on mobile devices
- Updated to latest `Material-UI` version (from `v1.0.0.beta30` to `v1.0.0.beta34`)

## [1.0.0] 2018-01-29
### Original Release
- Added Material-UI as base framework
- Added design from Material Dashboard by Creative Tim
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "fff-badminton",
"version": "0.0.1",
"description": "An AWS Amplify Webapp for tracking badminton games based on the Creative Tim Template Material Dashboard React",
"private": false,
"private": true,
"main": "dist/index.js",
"dependencies": {
"@date-io/date-fns": "^1.3.13",
Expand Down Expand Up @@ -71,5 +71,11 @@
"not op_mini all"
],
"development": []
}
},
"files": [
"index.js",
"CHANGELOG.md",
"package.json",
"package-lock.json"
]
}
21 changes: 21 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
tarballDir: "release"
}
],
[
"@semantic-release/github",
{
assets: "release/*.tgz"
}
],
"@semantic-release/git"
],
preset: "angular"
};

0 comments on commit c952e83

Please sign in to comment.