Skip to content

Commit

Permalink
fix: set minimal node.js version to 14 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Mar 11, 2022
1 parent e30b823 commit da87f68
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 11 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,22 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16]
steps:
- uses: actions/checkout@v2

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.14.0

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Unit tests
run: yarn test

- name: Build
run: yarn build

- name: Release
if: contains(github.ref, 'refs/heads/main')
uses: cycjimmy/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release
on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:
jobs:
release:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.14.0

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Release
uses: cycjimmy/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lib"
],
"engines": {
"node": ">=16.x"
"node": ">=14"
},
"devDependencies": {
"@commitlint/cli": "^16.0.3",
Expand Down
2 changes: 2 additions & 0 deletions src/CookieStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ interface RequestLike {
credentials: Request['credentials']
url: string
}

interface HeadersLike {
get(name: string): string | null
}

interface ResponseLike {
headers: HeadersLike
}
Expand Down

0 comments on commit da87f68

Please sign in to comment.