Skip to content

Commit

Permalink
Merge pull request #49 from aldabil21/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aldabil21 authored Oct 8, 2022
2 parents 38f57c6 + 3345761 commit 66e8062
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 78 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: npm publish
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Install
run: npm install

- name: Pack
run: npm run pack

- name: Publish
run: |
cd dist
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests
on:
pull_request:
branches: ["master"]
jobs:
Install:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Install
run: npm install

- name: Format
run: npm run format:write

- name: Lint
run: npm run lint

- name: Test
run: npm run test:ci
104 changes: 27 additions & 77 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aldabil/react-scheduler",
"version": "2.3.10",
"version": "2.4.0",
"description": "React scheduler component based on Material-UI & date-fns",
"files": [
"*"
Expand Down Expand Up @@ -59,6 +59,7 @@
"@types/react-dom": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"date-fns": "^2.29.3",
"eslint": "^8.24.0",
"eslint-plugin-react": "^7.31.8",
"husky": "^8.0.0",
Expand All @@ -71,6 +72,7 @@
"react-scripts": "^5.0.1",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.1",
"typescript": "^4.8.4",
"webpack-cli": "^4.7.0",
"webpack-node-externals": "^3.0.0"
Expand Down
1 change: 1 addition & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { EVENTS } from "./events";

function App() {
// const [events, setEvents] = React.useState(EVENTS);

return (
<Scheduler
events={EVENTS}
Expand Down

0 comments on commit 66e8062

Please sign in to comment.