Skip to content

Commit d75d912

Browse files
authoredMay 30, 2021
Merge pull request #480 from hypeserver/tool/github-action-npm-publish
Add npm publish github action on release/* tag addition + bump to version 1.1.4
2 parents 93b803b + 62f63b6 commit d75d912

File tree

9 files changed

+2765
-2256
lines changed

9 files changed

+2765
-2256
lines changed
 

‎.github/workflows/publish.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- release/*
6+
jobs:
7+
build:
8+
name: NPM Package
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Publish new version to NPM
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 13.x
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: yarn install
18+
- run: yarn build
19+
- run: yarn publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
22+

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ node_modules/
66
lib/
77
NOTES.txt
88
styleguide/
9-
dist/
9+
dist/

‎CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ NEW
5656
```js
5757
<Calendar
5858
date={this.state.eventDate} // js object
59-
onChange={date => this.setState({ eventDate: date })} //
59+
onChange={date => this.setState({ eventDate: date })} //
6060
/>
6161
```
6262

6363
NEW with moment (or any other date libraries)
6464
```js
6565
<Calendar
6666
date={this.state.eventDate.toDate()} // convert moment object to js Date
67-
onChange={date => this.setState({ eventDate: moment(date) })} //
67+
onChange={date => this.setState({ eventDate: moment(date) })} //
6868
/>
6969
```
7070
- BREAKING: Theming and style approach complately changed. `react-date-range` don't use inline styles any more. At the new version you should import **skeleton styles** and **theme styles**
@@ -86,7 +86,7 @@ import 'react-date-range/dist/theme/default.css';
8686
NEW
8787
```js
8888
import turkish from 'react-date-range/locale/tr';
89-
// you can view full list in https://github.com/Adphorus/react-date-range/tree/next/src/locale/index.js
89+
// you can view full list in https://github.com/hypeserver/react-date-range/tree/next/src/locale/index.js
9090
<Calendar locale={turkish} />
9191
```
9292

‎CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing Guide
22

3-
Make sure your issue or feature doesn't have any related issue at [react-date-range repo](https://github.com/Adphorus/react-date-range/issues). If it didn't exist already, create an issue.
3+
Make sure your issue or feature doesn't have any related issue at [react-date-range repo](https://github.com/hypeserver/react-date-range/issues). If it didn't exist already, create an issue.
44

55
## Getting Started
66

‎LICENSE

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
The MIT License (MIT)
2-
Copyright (c) 2015-2016 Adphorus
2+
Copyright (c) 2015-2020 Adphorus
3+
Copyright (c) 2020- Hypeserver
34

45
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
56

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fixedHeight | Boolean | false | Since some
138138
renderStaticRangeLabel(`DefinedRange`)| Function | | Callback function to be triggered for the static range configurations that have `hasCustomRendering: true` on them. Instead of rendering `staticRange.label`, return value of this callback will be rendered.
139139
staticRanges(`DefinedRange`, `DateRangePicker`) | Array | [default preDefined ranges](https://github.com/hypeserver/react-date-range/blob/master/src/defaultRanges.js) | -
140140
inputRanges(`DefinedRange`, `DateRangePicker`) | Array | [default input ranges](https://github.com/hypeserver/react-date-range/blob/master/src/defaultRanges.js) | -
141-
ariaLabels | **Object | {} | inserts aria-label to inner elements
141+
ariaLabels | Object | {} | inserts aria-label to inner elements
142142

143143
*shape of range:
144144
```js
@@ -158,9 +158,9 @@ ariaLabels | **Object | {} | inserts aria-label to inner elements
158158
{
159159
// The key of dateInput should be same as key in range.
160160
dateInput: PropTypes.objectOf(
161-
PropTypes.shape({
161+
PropTypes.shape({
162162
startDate: PropTypes.string,
163-
endDate: PropTypes.string
163+
endDate: PropTypes.string
164164
})
165165
),
166166
monthPicker: PropTypes.string,

‎demo/components/StyleGuide.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function StyleGuideRenderer({ classes, title, homepageUrl, children }) {
7474
</a>
7575
</Logo>
7676
<nav className={classes.nav}>
77-
<a className={classes.headerLink} href="https://github.com/Adphorus/react-date-range">
77+
<a className={classes.headerLink} href="https://github.com/hypeserver/react-date-range">
7878
GitHub
7979
</a>
8080
</nav>

‎package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-date-range",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "A React component for choosing dates and date ranges.",
55
"main": "dist/index.js",
66
"scripts": {
@@ -22,16 +22,17 @@
2222
"contributors": [
2323
"Burak Can <neoberg@gmail.com> (https://github.com/burakcan)",
2424
"Mehmet Kamil Morcay <mehmetmorcay@gmail.com> (https://github.com/mkg0)",
25+
"Kamyar Ghasemlou <github@kamy.me> (https://github.com/kamyar)",
2526
"Engin Semih Basmacı <semih.basmaci@gmail.com> (https://github.com/mortargrind)",
2627
"Onur Kerimov <onurkerimov@gmail.com> (https://github.com/onurkerimov)"
2728
],
2829
"license": "MIT",
2930
"repository": {
3031
"type": "git",
31-
"url": "http://github.com/Adphorus/react-date-range"
32+
"url": "http://github.com/hypeserver/react-date-range"
3233
},
3334
"bugs": {
34-
"url": "http://github.com/Adphorus/react-date-range/issues"
35+
"url": "http://github.com/hypeserver/react-date-range/issues"
3536
},
3637
"browserslist": [
3738
"defaults"

‎yarn.lock

+2,728-2,243
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.