Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 4de14af

Browse files
authored
ci: replace travis with actions, setup renovate (#52)
1 parent a56590f commit 4de14af

File tree

10 files changed

+13234
-26
lines changed

10 files changed

+13234
-26
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @vanduynslagerp

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- next
7+
- beta
8+
- "*.x" # maintenance releases branches
9+
10+
jobs:
11+
release:
12+
name: release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v1
17+
- uses: bahmutov/npm-install@v1
18+
- run: find ./scripts -type f -exec "shellcheck" "-x" {} \;
19+
- run: docker build -t semanticrelease/npm-registry-docker .
20+
- run: npx semantic-release
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- renovate/**
8+
9+
pull_request:
10+
types:
11+
- opened
12+
- synchronize
13+
14+
jobs:
15+
test_matrix:
16+
strategy:
17+
matrix:
18+
node-version:
19+
- 10
20+
- 12
21+
- 14
22+
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- uses: bahmutov/npm-install@v1
32+
- run: npm run test
33+
34+
# separate job to set as required in branch protection,
35+
# as the build names above change each time Node versions change
36+
test:
37+
runs-on: ubuntu-latest
38+
needs: test_matrix
39+
steps:
40+
- uses: actions/checkout@v2
41+
- uses: actions/setup-node@v1
42+
- uses: bahmutov/npm-install@v1
43+
- run: find ./scripts -type f -exec "shellcheck" "-x" {} \;
44+
- run: docker build -t semanticrelease/npm-registry-docker .
45+
- run: npm run lint

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
.LSOverride
2323

2424
# Icon must end with two \r
25-
Icon
25+
Icon
2626

2727
# Thumbnails
2828
._*
@@ -125,7 +125,4 @@ $RECYCLE.BIN/
125125
# Windows shortcuts
126126
*.lnk
127127

128-
# End of https://www.gitignore.io/api/macos,windows,linux,node
129-
130-
package-lock.json
131-
yarn.lock
128+
# End of https://www.gitignore.io/api/macos,windows,linux,node

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.yarnrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
[CouchDB Docker image](https://github.com/apache/couchdb-docker) running [npm-registry-couchapp](https://github.com/npm/npm-registry-couchapp).
44

5-
[![Travis](https://img.shields.io/travis/com/semantic-release/npm-registry-docker.svg)](https://travis-ci.com/semantic-release/npm-registry-docker)
6-
[![Greenkeeper badge](https://badges.greenkeeper.io/semantic-release/npm-registry-docker.svg)](https://greenkeeper.io/)
5+
[![Build Status](https://github.com/semantic-release/npm-registry-docker/workflows/Test/badge.svg)](https://github.com/semantic-release/npm-registry-docker/actions?query=workflow%3ATest+branch%3Amaster)
76

87
This docker image is for test and development purposes only.
98

@@ -24,11 +23,13 @@ $ docker run -d -p 5984:5984 semanticrelease/npm-registry-docker
2423
The npm registry is accessible on `http://localhost:5984/registry/_design/app/_rewrite` and the CouchDB user `admin` with password `admin` is created.
2524

2625
To configure npm to use the registry:
26+
2727
```bash
2828
$ npm config set registry http://localhost:5984/registry/_design/app/_rewrite
2929
```
3030

3131
To create a npm user and configure npm authentication:
32+
3233
```bash
3334
$ curl -H 'Content-Type: application/json' -XPUT -d '{"_id": "org.couchdb.user:npm-user","name": "npm-user","roles": [],"type": "user","password": "npm-password","email": "[email protected]"}' "http://admin:admin@localhost:5984/_users/org.couchdb.user:npm-user"
3435

@@ -45,11 +46,13 @@ $ docker run -d -p 5984:5984 -e COUCHDB_USER=my-user -e COUCHDB_PASSWORD=my-pass
4546
The npm registry is accessible on `http://my-registry:5984` and the CouchDB user `my-user` with password `my-password` is created.
4647

4748
To configure npm to use the registry:
49+
4850
```bash
4951
$ npm config set registry http://my-registry:5984
5052
```
5153

5254
To create a npm user and configure npm authentication:
55+
5356
```bash
5457
$ curl -H 'Content-Type: application/json' -XPUT -d '{"_id": "org.couchdb.user:npm-user","name": "npm-user","roles": [],"type": "user","password": "npm-password","email": "[email protected]"}' "http://my-user:my-password@localhost:5984/_users/org.couchdb.user:npm-user"
5558

0 commit comments

Comments
 (0)