Skip to content

Commit

Permalink
ci(*): Switched from Travis to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenashpole committed Aug 5, 2021
1 parent 0f4dec3 commit 95d2e0f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 29 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '12.x'
- name: Cache modules
uses: actions/cache@v2
with:
path: ~/.npm
key: v1-npm-deps-${{ hashFiles('**/package-lock.json') }}
restore-keys: v1-npm-deps-
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm install
npm build
npm run semantic-release
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[Demos](https://laurenashpole.github.io/react-inner-image-zoom)

[![Travis][build-badge]][build] [![npm package][npm-badge]][npm] [![TypeScript definitions on DefinitelyTyped][dt-badge]][dt]
![GitHub Actions][build-badge] [![npm package][npm-badge]][npm] [![TypeScript definitions on DefinitelyTyped][dt-badge]][dt]

A React component for magnifying an image within its original container. Zoom behavior can be triggered on click or hover and the zoomed image can be moved by dragging on touch devices and either dragging or pan on hover on non-touch devices. The component supports responsive images, loading placeholders, optional fullscreen zoom on mobile, and more.

Expand Down Expand Up @@ -113,8 +113,7 @@ If you're interested in contributing, check out the guidelines [here](https://gi

[MIT](https://github.com/laurenashpole/react-inner-image-zoom/blob/master/LICENSE)

[build-badge]: https://travis-ci.org/laurenashpole/react-inner-image-zoom.svg?branch=master
[build]: https://travis-ci.org/laurenashpole/react-inner-image-zoom
[build-badge]: https://github.com/laurenashpole/react-inner-image-zoom/actions/workflows/release.yml/badge.svg

[npm-badge]: http://img.shields.io/npm/v/react-inner-image-zoom.svg?style=flat
[npm]: https://www.npmjs.com/package/react-inner-image-zoom
Expand Down

0 comments on commit 95d2e0f

Please sign in to comment.