Skip to content

Commit

Permalink
chore: update repo automation (#18)
Browse files Browse the repository at this point in the history
* chore: update repo automation

* docs: update readme
  • Loading branch information
Eomm authored May 31, 2022
1 parent cf27942 commit 51bc2e8
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 27 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 10

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
16 changes: 0 additions & 16 deletions .github/workflows/hacktoberfest.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: release

on:
workflow_dispatch:
inputs:
semver:
description: 'The semver to use'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major
pull_request:
types: [closed]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18

- uses: nearform/optic-release-automation-action@v2
with:
github-token: ${{ secrets.github_token }}
npm-token: ${{ secrets.NPM_TOKEN }}
optic-token: ${{ secrets.OPTIC_TOKEN }}
semver: ${{ github.event.inputs.semver }}
sync-semver-tags: 'true'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@ dist
.tern-port

package-lock.json
.vscode
1 change: 0 additions & 1 deletion .taprc

This file was deleted.

17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# fastify-raw-body

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

Adds the raw body to the Fastify request object.

Expand All @@ -13,13 +14,13 @@ Adds the raw body to the Fastify request object.
npm i fastify-raw-body
```

### Fastify v2
### Compatibility

The version `2.x` of this module support Fastify v2 and Node.js>=6
| Plugin version | Fastify version |
| ------------- |:---------------:|
| `^2.0.0` | `^2.0.0` |
| `^3.0.0` | `^3.0.0` |

```
npm i [email protected]
```

## Usage

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

## License

Licensed under [MIT](./LICENSE).
Copyright [Manuel Spigolon](https://github.com/Eomm), Licensed under [MIT](./LICENSE).
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "plugin.js",
"types": "plugin.d.ts",
"scripts": {
"test": "standard && tap test/**.test.js && tsd"
"lint": "standard",
"lint:fix": "standard --fix",
"test": "tap test/**.test.js && tsd"
},
"repository": {
"type": "git",
Expand All @@ -29,7 +31,7 @@
"devDependencies": {
"@types/node": "^14.14.17",
"fastify": "^3.0.0-rc.4",
"standard": "^14.3.4",
"standard": "^17.0.0",
"tap": "^15.0.1",
"tsd": "^0.14.0"
},
Expand Down

0 comments on commit 51bc2e8

Please sign in to comment.