Skip to content

Commit 51bc2e8

Browse files
authored
chore: update repo automation (#18)
* chore: update repo automation * docs: update readme
1 parent cf27942 commit 51bc2e8

7 files changed

Lines changed: 60 additions & 27 deletions

File tree

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
open-pull-requests-limit: 10
8+
9+
- package-ecosystem: "npm"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
open-pull-requests-limit: 10

.github/workflows/hacktoberfest.yml

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

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
semver:
7+
description: 'The semver to use'
8+
required: true
9+
default: 'patch'
10+
type: choice
11+
options:
12+
- patch
13+
- minor
14+
- major
15+
pull_request:
16+
types: [closed]
17+
18+
jobs:
19+
release:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: 18
26+
27+
- uses: nearform/optic-release-automation-action@v2
28+
with:
29+
github-token: ${{ secrets.github_token }}
30+
npm-token: ${{ secrets.NPM_TOKEN }}
31+
optic-token: ${{ secrets.OPTIC_TOKEN }}
32+
semver: ${{ github.event.inputs.semver }}
33+
sync-semver-tags: 'true'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,4 @@ dist
104104
.tern-port
105105

106106
package-lock.json
107+
.vscode

.taprc

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

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# fastify-raw-body
22

3-
![ci](https://github.com/Eomm/fastify-raw-body/workflows/ci/badge.svg)
4-
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
3+
[![Build Status](https://github.com/Eomm/fastify-raw-body/workflows/ci/badge.svg)](https://github.com/Eomm/fastify-raw-body/actions)
4+
[![npm](https://img.shields.io/npm/v/fastify-raw-body)](https://www.npmjs.com/package/fastify-raw-body)
5+
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
56

67
Adds the raw body to the Fastify request object.
78

@@ -13,13 +14,13 @@ Adds the raw body to the Fastify request object.
1314
npm i fastify-raw-body
1415
```
1516

16-
### Fastify v2
17+
### Compatibility
1718

18-
The version `2.x` of this module support Fastify v2 and Node.js>=6
19+
| Plugin version | Fastify version |
20+
| ------------- |:---------------:|
21+
| `^2.0.0` | `^2.0.0` |
22+
| `^3.0.0` | `^3.0.0` |
1923

20-
```
21-
npm i fastify-raw-body@2.0.0
22-
```
2324

2425
## Usage
2526

@@ -65,4 +66,4 @@ If you haven't customized this component, it will be secure as the original one
6566

6667
## License
6768

68-
Licensed under [MIT](./LICENSE).
69+
Copyright [Manuel Spigolon](https://github.com/Eomm), Licensed under [MIT](./LICENSE).

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"main": "plugin.js",
66
"types": "plugin.d.ts",
77
"scripts": {
8-
"test": "standard && tap test/**.test.js && tsd"
8+
"lint": "standard",
9+
"lint:fix": "standard --fix",
10+
"test": "tap test/**.test.js && tsd"
911
},
1012
"repository": {
1113
"type": "git",
@@ -29,7 +31,7 @@
2931
"devDependencies": {
3032
"@types/node": "^14.14.17",
3133
"fastify": "^3.0.0-rc.4",
32-
"standard": "^14.3.4",
34+
"standard": "^17.0.0",
3335
"tap": "^15.0.1",
3436
"tsd": "^0.14.0"
3537
},

0 commit comments

Comments
 (0)