File tree 5 files changed +30
-188
lines changed
5 files changed +30
-188
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
branches :
6
6
- master
7
7
8
+ env :
9
+ DOCKER_IMAGE_NAME : mergeability/mergeable
10
+
8
11
jobs :
9
12
build :
10
13
name : Release
11
14
runs-on : ubuntu-latest
12
-
13
- strategy :
14
- matrix :
15
- node-version : [20.11.1]
16
-
17
15
steps :
18
- - uses : actions/checkout@v4
19
- with :
20
- fetch-depth : 0
21
- - name : Use Node.js ${{ matrix.node-version }}
22
- uses : actions/setup-node@v4
23
- with :
24
- node-version : ${{ matrix.node-version }}
25
- - run : npm install
26
- - name : Release
16
+ - name : Checkout
17
+ uses : actions/checkout@v4
18
+ - name : Semantic Release
19
+ id : semantic
20
+ uses : cycjimmy/semantic-release-action@v4
27
21
env :
28
22
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
23
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
30
- run : npx semantic-release
24
+ - name : Login to Docker Hub
25
+ uses : docker/login-action@v3
26
+ with :
27
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
28
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
29
+ if : ${{ steps.semantic.outputs.new_release_version }}
30
+ -
uses :
buildpacks/github-actions/[email protected]
31
+ if : ${{ steps.semantic.outputs.new_release_version }}
32
+ - name : Build and publish docker image
33
+ if : ${{ steps.semantic.outputs.new_release_version }}
34
+ run : pack build ${{ env.DOCKER_IMAGE_NAME }} -t ${{ env.DOCKER_IMAGE_NAME }}:${{ steps.semantic.outputs.new_release_version }} -t ${{ env.DOCKER_IMAGE_NAME }}:latest -B paketobuildpacks/builder-jammy-tiny -b docker.io/paketobuildpacks/nodejs --publish
Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
- on :
4
- push :
5
- branches : ['**']
6
- pull_request :
7
- branches : ['**']
8
-
9
- permissions :
10
- contents : read
3
+ on : [ push ]
11
4
12
5
jobs :
13
6
build :
14
- name : Tests and Code Coverage
15
7
runs-on : ubuntu-latest
16
-
17
- strategy :
18
- matrix :
19
- node-version : [20.11.1]
20
-
21
8
steps :
22
9
- uses : actions/checkout@v4
23
- - name : Use Node.js ${{ matrix.node-version }}
10
+ - name : Use Node.js
24
11
uses : actions/setup-node@v4
25
12
with :
26
- node-version : ${{ matrix.node-version }}
27
- - run : npm install
13
+ node-version : ' 20.x '
14
+ - run : npm ci
28
15
- run : npm run build --if-present
29
- - run : npm run test-coverage
30
- env :
31
- CI : true
16
+ - run : npm test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 43
43
"standard" : " ^16.0.3"
44
44
},
45
45
"engines" : {
46
- "node" : " >= 18.12.1 "
46
+ "node" : " ^20 "
47
47
},
48
48
"standard" : {
49
49
"env" : [
58
58
"collectCoverageFrom" : [
59
59
" lib/**/*.js"
60
60
]
61
- }
61
+ },
62
+ "publishConfig" : {
63
+ "access" : " public"
64
+ },
65
+ "private" : false
62
66
}
You can’t perform that action at this time.
0 commit comments