Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to node 18 #126

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, 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: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- master
# Sequence of patterns matched against refs/tags
tags:
- v*

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- run: npm install
# - run: npm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM }}
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ npm i --save react-swipeable-views
|onChange | `function` | | Fired when the index changed. Returns current index.
|onClose | `function` | | Fired when the gray background of the popup is pressed when it is open.
|onStart | `function` | | Fired when the user clicks the getting started button.
|footer | `node` | | Object to display in the bottom half.
|currentIndex | `number` | | Set the current index of the carousel.

### Slide Properties

Expand All @@ -48,6 +50,7 @@ npm i --save react-swipeable-views
|style | `object` | | Override the inline-styles of the slide.
|subtitle* | `string` | | Subtitle for the slide.
|title* | `string` | | Title for the slide.
|noFooter | `bool` | | If `true`, the slide will not have a footer.

\* required property

Expand All @@ -59,3 +62,10 @@ npm i --save react-swipeable-views
The files included in this repository are licensed under the MIT license.

[legacy]: https://github.com/TeamWertarbyte/material-auto-rotating-carousel/tree/legacy


## Build and deploy

npm run prepublish

npm publish
Loading