Skip to content

Commit

Permalink
chore: move to github actions, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
maticzav committed Dec 15, 2020
1 parent e1ff2b5 commit 9f4f118
Show file tree
Hide file tree
Showing 9 changed files with 78 additions and 60 deletions.
39 changes: 0 additions & 39 deletions .circleci/config.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: maticzav
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release on NPM

on:
push:
branches:
- main

jobs:
build:
name: release
runs-on: ubuntu-latest
steps:
# Setup
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: '13.x'
- run: yarn install
# Publish
- run: yarn build
- run: yarn test
env:
GH_TOKEN: ${{ secrets.GH_SPONSORS_TOKEN }}
- run: yarn coverage
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test GraphQL Middleware

on: [push, pull_request]

jobs:
build:
name: release
runs-on: ubuntu-latest
steps:
# Setup
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: '13.x'
- run: yarn install
# Test
- run: yarn build
- run: yarn test
env:
GH_TOKEN: ${{ secrets.GH_SPONSORS_TOKEN }}
- run: yarn coverage
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

9 changes: 3 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"**/node_modules/**": true
},
"typescript.tsdk": "./node_modules/typescript/lib",
"spellright.language": [
"en"
],
"spellright.documentTypes": [
"plaintext"
]
"spellright.language": ["en"],
"spellright.documentTypes": ["plaintext"],
"editor.formatOnSave": true
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Prisma
Copyright (c) 2020 Matic Zavadlal

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# WARNING: This project is currently unmaintained

---

<p align="center"><img src="media/logo.png" width="150" /></p>

# graphql-middleware

[![CircleCI](https://circleci.com/gh/prisma/graphql-middleware.svg?style=shield)](https://circleci.com/gh/prisma/graphql-middleware)
[![codecov](https://codecov.io/gh/prisma/graphql-middleware/branch/master/graph/badge.svg)](https://codecov.io/gh/prisma/graphql-middleware)
[![npm version](https://badge.fury.io/js/graphql-middleware.svg)](https://badge.fury.io/js/graphql-middleware)

Expand Down Expand Up @@ -156,8 +151,8 @@ server.start(() => console.log('Server is running on localhost:4000'))

## Awesome Middlewares [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)

- [graphql-middleware-apollo-upload-server](http://github.com/homeroom-live/graphql-middleware-apollo-upload-server) - Uploading files is hard, that's why this package manages it for you!
- [graphql-shield](https://github.com/maticzav/graphql-shield) - Permissions as another layer of abstraction.
- [graphql-middleware-apollo-upload-server](http://github.com/homeroom-live/graphql-middleware-apollo-upload-server) - Uploading files is hard, that's why this package manages it for you!
- [graphql-middleware-sentry](https://github.com/maticzav/graphql-middleware-sentry) - Report your server errors to Sentry.
- [graphql-middleware-forward-binding](https://github.com/maticzav/graphql-middleware-forward-binding) - GraphQL Binding forwardTo plugin for GraphQL Middleware.
- [graphql-yup-middleware](https://github.com/JCMais/graphql-yup-middleware) - Use yup to validate mutation arguments
Expand Down Expand Up @@ -337,8 +332,12 @@ GraphQL Middleware and `directives` tackle the same problem in a completely diff

GraphQL Middleware allows you to modify the context of your resolvers, but we encourage you to use GraphQL Yoga's `documentMiddleware` for this functionality instead.

## Help & Community [![Slack Status](https://slack.prisma.io/badge.svg)](https://slack.prisma.io)
## Thank you

Thanks to everyone who supported the development of this project. It's an honor to lead a project that helps so many people.

Join our [Slack community](http://slack.prisma.io/) if you run into issues or have questions. We love talking to you!
- [Prisma](http://github.com/prisma) - for sponsoring the project,
- Johannes Schickling - for guiding the project development, and
- everyone else who personally contributed to the project in one way or another.

<p align="center"><a href="https://oss.prisma.io"><img src="https://imgur.com/IMU2ERq.png" alt="Prisma" height="170px"></a></p>
Thank you! :heart:
5 changes: 5 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
semi: false,
trailingComma: 'all',
singleQuote: true,
}

0 comments on commit 9f4f118

Please sign in to comment.