Skip to content

Commit

Permalink
add github actions & bump version for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
vinothpandian committed Aug 24, 2021
1 parent e5d3ca2 commit 306ac7c
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 10 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Node.js CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14.x
steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: |
yarn install --frozen-lockfile --silent
yarn nx run react-sketch-canvas:build
yarn nx run react-sketch-canvas:build-storybook:ci
- name: Deploy Storybook 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist/storybook/react-sketch-canvas
clean: true

- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
check-version: true
package: dist/libs/react-sketch-canvas/package.json
6 changes: 1 addition & 5 deletions libs/react-sketch-canvas/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@
}
]
],
"plugins": [
["@babel/plugin-proposal-class-properties", { "loose": false }],
["@babel/plugin-proposal-private-methods", { "loose": false }],
["@babel/plugin-proposal-private-property-in-object", { "loose": false }]
]
"plugins": []
}
2 changes: 1 addition & 1 deletion libs/react-sketch-canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-sketch-canvas",
"version": "5.3.4",
"version": "6.0.0",
"description": "react-sketch-canvas - Freehand vector drawing tool for React using SVG as canvas",
"author": "Vinoth Pandian",
"homepage": "https://vinoth.info/react-sketch-canvas",
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-sketch-canvas",
"version": "0.0.0",
"version": "6.0.0",
"license": "MIT",
"scripts": {
"nx": "nx",
Expand Down Expand Up @@ -35,9 +35,6 @@
},
"devDependencies": {
"@babel/core": "7.12.13",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-proposal-private-methods": "^7.14.5",
"@babel/plugin-proposal-private-property-in-object": "^7.14.5",
"@babel/preset-typescript": "7.12.13",
"@nrwl/cli": "12.7.2",
"@nrwl/eslint-plugin-nx": "12.7.2",
Expand Down

0 comments on commit 306ac7c

Please sign in to comment.