diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index f036dc9a5..000000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,56 +0,0 @@ - - -### Summary - - -### Simplest Example to Reproduce - - -```js -request({ - method: 'GET', - url: 'http://example.com', // a public URL that we can hit to reproduce, if possible - more: { 'options': 'here' } -}, -``` - -### Expected Behavior - - - - -### Current Behavior - - - -### Possible Solution - - - -### Context - - - -### Your Environment - - -| software | version -| ---------------- | ------- -| request | -| node | -| npm | -| Operating System | diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 0cb35f040..000000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,13 +0,0 @@ -## PR Checklist: -- [ ] I have run `npm test` locally and all tests are passing. -- [ ] I have added/updated tests for any new behavior. - -- [ ] If this is a significant change, an issue has already been created where the problem / solution was discussed: [N/A, or add link to issue here] - - - -## PR Description - diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index ad26df134..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,19 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 365 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - "Up for consideration" - - greenkeeper - - neverstale - - bug -# Label to use when marking an issue as stale -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml new file mode 100644 index 000000000..3da7c6dd0 --- /dev/null +++ b/.github/workflows/quality.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..409f7d7b6 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/package.json b/package.json index 86e4266bf..8979f0cc9 100644 --- a/package.json +++ b/package.json @@ -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" },