Skip to content

Commit

Permalink
build: bump tough-cookie dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
leroyguillaume committed Nov 20, 2023
1 parent 3c0cddc commit e5c03da
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 89 deletions.
56 changes: 0 additions & 56 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

13 changes: 0 additions & 13 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

19 changes: 0 additions & 19 deletions .github/stale.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Quality

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref_name }}

on:
pull_request:
paths:
- .github/workflows/quality.yml
- lib/**
- tests/**
- index.js
- package.json
- request.js
push:
paths:
- package.json

jobs:
quality:
name: Quality
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: npm
node-version: 18

- name: Install dependencies
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm ci

- name: Run tests
if: github.event_name == 'pull_request'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_DEV }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_DEV }}
CI: true
ENV: stage
NODE_ENV: stage
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm test

- name: Run audit
if: github.event_name == 'pull_request'
run: npx audit-ci
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref_name }}

on:
push:
tags: [v*]

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: npm
node-version: 18

- name: Configure npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc

- name: Install dependencies
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm ci

- name: Publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"performance-now": "^2.1.0",
"qs": "~6.5.2",
"safe-buffer": "^5.1.2",
"tough-cookie": "~2.5.0",
"tough-cookie": "~4.1.0",
"tunnel-agent": "^0.6.0",
"uuid": "^3.3.2"
},
Expand Down

0 comments on commit e5c03da

Please sign in to comment.