Skip to content

Commit

Permalink
refactor: update dependencie
Browse files Browse the repository at this point in the history
- added semantic-release

BREAKING CHANGE: update dependencie
  • Loading branch information
awran5 committed Jul 6, 2021
1 parent ddd59f8 commit 299689c
Show file tree
Hide file tree
Showing 6 changed files with 2,523 additions and 717 deletions.
47 changes: 26 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,40 @@
name: Release
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches:
- main
branches: [main]
pull_request:
branches: [main]

jobs:
release:
name: Release
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup Node.js 12.x
uses: actions/setup-node@master
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: ${{ matrix.node }}

- name: Install Dependencies
run: yarn
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@master
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
- name: Build
run: yarn build

- name: Release
run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# dependencies
node_modules
example/node_modules
example/build

# builds
build
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## 05/21/2020

## 1.5.1

### Patch Changes

- bug

## 1.5.0

### Minor Changes
Expand Down
2 changes: 2 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.vercel
29 changes: 18 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-floating-whatsapp",
"version": "1.5.0",
"version": "0.0.0-development",
"private": false,
"description": "Simple React component for adding a floating WhatsApp button to your project.",
"author": "awran5 <awran5@yahoo.com>",
Expand All @@ -15,40 +15,42 @@
},
"scripts": {
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
"clean": "rimraf dist",
"start": "yarn clean && rollup -cw --exports auto",
"clean": "rm -rf dist",
"start": "rollup -cw --exports auto",
"build": "yarn clean && rollup -c --exports auto",
"release": "yarn build && changeset publish"
"commit": "git cz",
"release": "semantic-release -b main"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@changesets/cli": "^2.16.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"@typescript-eslint/eslint-plugin": "^4.28.2",
"@typescript-eslint/parser": "^4.28.2",
"autoprefixer": "^10.2.5",
"commitizen": "^4.2.4",
"cross-env": "^7.0.2",
"eslint": "^7.26.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"postcss": "^8.2.15",
"prettier": "^2.3.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "^4.0.3",
"rimraf": "^3.0.2",
"rollup": "^2.49.0",
"rollup": "^2.52.7",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"semantic-release": "^17.4.4",
"tslib": "^2.2.0",
"typescript": "^4.2.4"
},
Expand All @@ -74,5 +76,10 @@
"react-component",
"react-typescript"
],
"dependencies": {}
"dependencies": {},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}
}
Loading

0 comments on commit 299689c

Please sign in to comment.