Skip to content

Commit

Permalink
Remove autodeploy (only for organization bypass protected)
Browse files Browse the repository at this point in the history
  • Loading branch information
denbon05 committed Aug 22, 2023
1 parent 118e877 commit b4c007a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 48 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/bump.yml

This file was deleted.

6 changes: 2 additions & 4 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- completed

permissions:
contents: write
pull-requests: write

jobs:
Expand All @@ -25,9 +24,8 @@ jobs:
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'

- name: Enable auto-merge for Dependabot PRs
if: ${{contains(steps.metadata.outputs.dependency-names, 'my-dependency') && steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
4 changes: 2 additions & 2 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish package to npmjs
on:
workflow_run:
workflows:
- Auto bump package version
- Node CI
branches:
- main
types:
Expand All @@ -14,7 +14,7 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' && github.actor != 'dependabot[bot]' }}

steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ npm i fastify-lcache

## Example

```ts
const address = '0.0.0.0';
const port = 4000;
```

```ts
// your app
import fastify from 'fastify';
import lcache from 'fastify-lcache';

const app = fastify();
const address = '0.0.0.0';
const port = 4000;

app.register(lcache, {
ttlInMinutes: 10, // set cached data lifetime to 10 minutes
});
Expand Down
9 changes: 6 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b4c007a

Please sign in to comment.