Skip to content

docs: correct new issue url in readme #715

docs: correct new issue url in readme

docs: correct new issue url in readme #715

Workflow file for this run

# /.github/workflows/ci.yaml
# GitHub actions workflow
name: CI
on: [push, pull_request]
jobs:
lint:
name: Lint
strategy:
matrix:
node-version: [lts/*]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Check for lint/formatting errors
run: |
npm ci
npm run lint
test-library:
name: Test (Library)
strategy:
matrix:
node-version: [lts/gallium, lts/*, latest]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Run library tests
run: |
npm ci
npm run test:lib
test-external:
name: Test (External)
strategy:
matrix:
node-version: [lts/*, latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8
- name: Run import and external store usage tests
run: |
pnpm install
pnpm pack
pnpm test:ext
publish:
name: Publish
needs: [lint, test-library, test-external]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Publish package to NPM
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build package to upload to GitHub releases
run: |
npm pack
mv express-rate-limit-*.tgz express-rate-limit.tgz
- name: Create a Github release
uses: softprops/action-gh-release@v1
with:
files: express-rate-limit.tgz
body:
You can view the changelog
[here](https://express-rate-limit.mintlify.app/reference/changelog).