File tree Expand file tree Collapse file tree 6 files changed +135
-24
lines changed Expand file tree Collapse file tree 6 files changed +135
-24
lines changed Original file line number Diff line number Diff line change
1
+ name : " Run tests"
2
+ description : " Runs the tests"
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - name : Install deps
7
+ run : npm install
8
+ shell : bash
9
+
10
+ - name : Test
11
+ run : npm run test
12
+ shell : bash
Original file line number Diff line number Diff line change
1
+ name : Create release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ create-release :
10
+ runs-on : ubuntu-20.04
11
+ outputs :
12
+ release_created : ${{ steps.release.outputs.release_created }}
13
+ steps :
14
+ - uses : google-github-actions/release-please-action@v3
15
+ id : release
16
+ with :
17
+ release-type : node
18
+ package-name : react-multiple-image-input
19
+ default-branch : main
20
+ changelog-path : CHANGELOG.md
21
+
22
+ test :
23
+ uses : ./.github/workflows/test.yaml
24
+ needs : create-release
25
+ if : ${{ !needs.create-release.outputs.release_created }}
26
+
27
+ deploy :
28
+ uses : ./.github/workflows/publish.yaml
29
+ needs : create-release
30
+ if : ${{ needs.create-release.outputs.release_created }}
31
+ secrets :
32
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Publish to npm
2
+
3
+ on :
4
+ workflow_dispatch : {}
5
+ workflow_call :
6
+ secrets :
7
+ NPM_TOKEN :
8
+ required : true
9
+
10
+ env :
11
+ FORCE_COLOR : 1
12
+
13
+ jobs :
14
+ test :
15
+ name : Test
16
+ runs-on : ubuntu-latest
17
+
18
+ strategy :
19
+ matrix :
20
+ node-version : [18.x, 19.x, 20.x]
21
+
22
+ steps :
23
+ - name : Checkout
24
+ uses : actions/checkout@v3
25
+
26
+ - name : Use Node.js ${{ matrix.node-version }}
27
+ uses : actions/setup-node@v3
28
+ with :
29
+ node-version : ${{ matrix.node-version }}
30
+
31
+ - name : Run tests
32
+ uses : ./.github/actions/run-tests
33
+
34
+ build-publish :
35
+ if : github.ref == 'refs/heads/main'
36
+
37
+ name : Publish
38
+ runs-on : ubuntu-latest
39
+ needs : test
40
+
41
+ steps :
42
+ - name : Checkout
43
+ uses : actions/checkout@v3
44
+
45
+ - uses : actions/setup-node@v3
46
+ with :
47
+ node-version : ' 18.x'
48
+ registry-url : ' https://registry.npmjs.org'
49
+
50
+ - name : Install deps
51
+ run : npm install
52
+
53
+ - name : Build project
54
+ run : npm run build
55
+
56
+ - name : Publish
57
+ run : npm publish
58
+ env :
59
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ pull_request :
5
+ types : [opened, labeled, synchronize]
6
+ workflow_call : {}
7
+
8
+
9
+ env :
10
+ FORCE_COLOR : 1
11
+
12
+ jobs :
13
+ test :
14
+ name : Test
15
+ runs-on : ubuntu-latest
16
+
17
+ strategy :
18
+ matrix :
19
+ node-version : [18.x, 19.x, 20.x]
20
+
21
+ steps :
22
+ - name : Checkout
23
+ uses : actions/checkout@v3
24
+
25
+ - name : Use Node.js ${{ matrix.node-version }}
26
+ uses : actions/setup-node@v3
27
+ with :
28
+ node-version : ${{ matrix.node-version }}
29
+
30
+ - name : Run tests
31
+ uses : ./.github/actions/run-tests
Original file line number Diff line number Diff line change 1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
- and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
-
8
- ## [ Unreleased]
9
-
10
- ## [ 1.0.0] - 2020-04-01
11
-
12
- ### Added
13
-
14
- - Improve UI for cropping
15
- - Crop with modal
16
-
17
- ## [ 0.2.0] - 2020-02-27
18
-
19
- ### Added
20
-
21
- - Select multiple images at once
22
- - Recrop already cropped image
23
- - Validate selected images for minimum width and height
Original file line number Diff line number Diff line change 1
1
# React Multple Image Input
2
2
3
- [ ![ Build Status ] ( https://travis-ci.org /codenaz/react-multiple-image-input.svg?branch=master )] ( https://travis-ci.org/codenaz/react-multiple-image-input )
3
+ ![ Build] ( https://github.com /codenaz/react-multiple-image-input/actions/workflows/create-release.yaml/badge.svg?branch=main )
4
4
5
5
![ demo] ( https://res.cloudinary.com/dyjqbwicx/image/upload/v1725403003/ezgif.com-video-to-gif-converter_m4fuo1.gif )
6
6
You can’t perform that action at this time.
0 commit comments