Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 116daf3

Browse files
Merge pull request #63 from patrixr/beta
Release v2.1.0
2 parents 8c16187 + 147ead3 commit 116daf3

37 files changed

+12425
-2522
lines changed

.eslintrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
extends: ['eslint:recommended', 'google', 'prettier'],
4+
env: {
5+
node: true,
6+
jest: true,
7+
},
8+
parserOptions: {
9+
ecmaFeatures: {
10+
experimentalObjectRestSpread: true,
11+
impliedStrict: true,
12+
},
13+
sourceType: 'module',
14+
},
15+
globals: {
16+
strapi: true,
17+
},
18+
rules: {
19+
indent: ['error', 2, { SwitchCase: 1 }],
20+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
21+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
22+
},
23+
};

.github/workflows/npm_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: supercharge/redis-github-action@1.1.0
2121
with:
2222
redis-version: ${{ matrix.redis-version }}
23-
- run: npm install
23+
- run: npm install
2424
- run: npm test
2525

2626
publish-npm:
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Beta auto-publish
2+
3+
on:
4+
push:
5+
branches:
6+
- beta
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
redis-version: [4, 5, 6]
14+
steps:
15+
- uses: actions/checkout@v1
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: 14
19+
- name: Start Redis
20+
uses: supercharge/redis-github-action@1.1.0
21+
with:
22+
redis-version: ${{ matrix.redis-version }}
23+
- run: npm install
24+
- run: npm test
25+
26+
publish-npm:
27+
needs: build
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v1
31+
- uses: actions/setup-node@v1
32+
with:
33+
node-version: 14
34+
registry-url: https://registry.npmjs.org/
35+
- run: npm publish --tag beta
36+
env:
37+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/test_middleware.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
2020
uses: supercharge/redis-github-action@1.1.0
2121
with:
2222
redis-version: ${{ matrix.redis-version }}
23-
- run: npm install
23+
- run: npm install
2424
- run: npm test

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"trailingComma": "es5",
3+
"singleQuote": true
4+
}

.vscode/launch.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "Run mocha",
9-
"type": "node",
10-
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
11-
"stopOnEntry": false,
12-
"args": ["./tests/*.test.js", "--no-timeouts", "--exit"],
13-
"cwd": "${workspaceFolder}",
14-
"runtimeExecutable": null,
15-
"request": "launch"
8+
"name": "Run mocha",
9+
"type": "node",
10+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
11+
"stopOnEntry": false,
12+
"args": ["./tests/*.test.js", "--no-timeouts", "--exit"],
13+
"cwd": "${workspaceFolder}",
14+
"runtimeExecutable": null,
15+
"request": "launch"
1616
}
1717
]
18-
}
18+
}

0 commit comments

Comments
 (0)