Skip to content

Commit fa1accc

Browse files
committed
chore: cleanup files
1 parent 7565a36 commit fa1accc

File tree

9 files changed

+76
-242
lines changed

9 files changed

+76
-242
lines changed

.github/FUNDING.yml

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

.github/ISSUE_TEMPLATE/bug_report.yml

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

.github/ISSUE_TEMPLATE/config.yml

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

.github/ISSUE_TEMPLATE/feature_request.yml

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

.github/dependabot.yml

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

.github/pull_request_template.md

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

.github/workflows/ci.yaml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
lint:
11+
name: Lint
12+
strategy:
13+
matrix:
14+
node-version: [lts/*]
15+
os: [ubuntu-latest]
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- name: Checkout the repository
19+
uses: actions/checkout@v2
20+
- name: Setup Node ${{ matrix.node-version }}
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
registry-url: 'https://registry.npmjs.org/'
25+
- name: Check for lint/formatting errors
26+
run: |
27+
npm ci
28+
npm run lint
29+
test:
30+
name: Test
31+
strategy:
32+
matrix:
33+
node-version: [lts/gallium, lts/*, latest]
34+
os: [ubuntu-latest, windows-latest, macos-latest]
35+
runs-on: ${{ matrix.os }}
36+
steps:
37+
- name: Checkout the repository
38+
uses: actions/checkout@v2
39+
- name: Setup Node ${{ matrix.node-version }}
40+
uses: actions/setup-node@v2
41+
with:
42+
node-version: ${{ matrix.node-version }}
43+
registry-url: 'https://registry.npmjs.org/'
44+
- name: Run library tests
45+
run: |
46+
npm ci
47+
npm test:lib
48+
publish:
49+
name: Publish
50+
needs: [lint, test-library, test-external]
51+
if: startsWith(github.ref, 'refs/tags/v')
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Checkout the repository
55+
uses: actions/checkout@v3
56+
- uses: actions/setup-node@v3
57+
with:
58+
node-version: lts/*
59+
registry-url: https://registry.npmjs.org/
60+
- name: Install dependencies
61+
run: npm ci
62+
- name: Publish package to NPM
63+
run: npm publish
64+
env:
65+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
66+
- name: Build package to upload to GitHub releases
67+
run: |
68+
npm pack
69+
mv rate-limit-redis-*.tgz rate-limit-redis.tgz
70+
- name: Create a Github release
71+
uses: softprops/action-gh-release@v1
72+
with:
73+
files: rate-limit-redis.tgz
74+
body:
75+
You can view the changelog
76+
[here](https://github.com/express-rate-limit/rate-limit-redis/blob/main/changelog.md).

.github/workflows/ci.yml

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

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)