31 Commits

Author SHA1 Message Date
James M. Greene
23968016b8 Merge pull request #70 from actions/dependabot/npm_and_yarn/axios-1.3.3
Bump axios from 1.3.0 to 1.3.3
2023-02-16 06:49:36 -06:00
github-actions[bot]
3d4ee3e950 Update distributables after Dependabot 🤖 2023-02-16 12:48:56 +00:00
dependabot[bot]
cdda64832d Bump axios from 1.3.0 to 1.3.3
Bumps [axios](https://github.com/axios/axios) from 1.3.0 to 1.3.3.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.3.0...v1.3.3)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 12:48:25 +00:00
James M. Greene
38eb20d0ee Merge pull request #66 from actions/dependabot/npm_and_yarn/prettier-2.8.4
Bump prettier from 2.7.1 to 2.8.4
2023-02-16 06:41:19 -06:00
dependabot[bot]
36b9431494 Bump prettier from 2.7.1 to 2.8.4
Bumps [prettier](https://github.com/prettier/prettier) from 2.7.1 to 2.8.4.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.7.1...2.8.4)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 12:38:21 +00:00
James M. Greene
179e061a24 Merge pull request #65 from actions/dependabot/npm_and_yarn/eslint-8.34.0
Bump eslint from 8.33.0 to 8.34.0
2023-02-16 06:37:29 -06:00
dependabot[bot]
175172ab3d Bump eslint from 8.33.0 to 8.34.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.33.0 to 8.34.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.33.0...v8.34.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 12:36:11 +00:00
James M. Greene
685a74a557 Merge pull request #61 from actions/dependabot/npm_and_yarn/vercel/ncc-0.36.1
Bump @vercel/ncc from 0.34.0 to 0.36.1
2023-02-16 06:35:22 -06:00
dependabot[bot]
84be8935f1 Bump @vercel/ncc from 0.34.0 to 0.36.1
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.34.0 to 0.36.1.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.34.0...0.36.1)

---
updated-dependencies:
- dependency-name: "@vercel/ncc"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 12:28:06 +00:00
James M. Greene
24bc4a64af Merge pull request #59 from actions/dependabot/npm_and_yarn/espree-9.4.1
Bump espree from 9.4.0 to 9.4.1
2023-02-16 06:27:22 -06:00
github-actions[bot]
ea72118a93 Update distributables after Dependabot 🤖 2023-02-16 12:26:05 +00:00
dependabot[bot]
f98f257726 Bump espree from 9.4.0 to 9.4.1
Bumps [espree](https://github.com/eslint/espree) from 9.4.0 to 9.4.1.
- [Release notes](https://github.com/eslint/espree/releases)
- [Changelog](https://github.com/eslint/espree/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/espree/compare/v9.4.0...v9.4.1)

---
updated-dependencies:
- dependency-name: espree
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 12:25:35 +00:00
James M. Greene
995b240285 Merge pull request #69 from actions/rebuild-dependabot-prs
Add workflow to rebuild Dependabot PRs
2023-02-16 06:24:14 -06:00
James M. Greene
c6c1171c00 Add workflow to rebuild Dependabot PRs 2023-02-15 19:08:30 -06:00
James M. Greene
37538b280c Merge pull request #56 from actions/dependabot/npm_and_yarn/axios-1.3.0
Bump axios from 0.27.2 to 1.3.0
2023-02-01 11:22:00 -06:00
James M. Greene
8d642d8eae Update distributables 2023-02-01 11:21:15 -06:00
dependabot[bot]
9b8d2f4ab2 Bump axios from 0.27.2 to 1.3.0
Bumps [axios](https://github.com/axios/axios) from 0.27.2 to 1.3.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.27.2...v1.3.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 17:19:53 +00:00
James M. Greene
e2f34b1f92 Merge pull request #58 from actions/dependabot/npm_and_yarn/jest-29.4.1
Bump jest from 28.1.1 to 29.4.1
2023-02-01 11:19:26 -06:00
dependabot[bot]
7aebbf763e Bump jest from 28.1.1 to 29.4.1
Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 28.1.1 to 29.4.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.4.1/packages/jest)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 17:18:41 +00:00
James M. Greene
6a2b91eafe Merge pull request #57 from actions/dependabot/npm_and_yarn/eslint-plugin-github-4.6.0
Bump eslint-plugin-github from 4.3.7 to 4.6.0
2023-02-01 11:17:49 -06:00
dependabot[bot]
939d05ad85 Bump eslint-plugin-github from 4.3.7 to 4.6.0
Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.3.7 to 4.6.0.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](https://github.com/github/eslint-plugin-github/compare/v4.3.7...v4.6.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 17:16:27 +00:00
James M. Greene
0ca1df54d4 Merge pull request #55 from actions/dependabot/npm_and_yarn/eslint-config-prettier-8.6.0
Bump eslint-config-prettier from 8.5.0 to 8.6.0
2023-02-01 11:15:11 -06:00
dependabot[bot]
5c42783e5b Bump eslint-config-prettier from 8.5.0 to 8.6.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.5.0 to 8.6.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.5.0...v8.6.0)

---
updated-dependencies:
- dependency-name: eslint-config-prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 17:14:28 +00:00
James M. Greene
13d4de8a28 Merge pull request #54 from actions/dependabot/npm_and_yarn/eslint-8.33.0
Bump eslint from 8.23.1 to 8.33.0
2023-02-01 11:08:42 -06:00
James M. Greene
5aa8bf5ac6 Merge branch 'main' into dependabot/npm_and_yarn/eslint-8.33.0 2023-02-01 11:08:09 -06:00
James M. Greene
1d79de2fe7 Merge pull request #53 from actions/test-set-pages-config
Update tests to actually invoke the desired method instead of replicating it
2023-02-01 11:00:46 -06:00
dependabot[bot]
5a80553d12 Bump eslint from 8.23.1 to 8.33.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.23.1 to 8.33.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.23.1...v8.33.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 17:00:40 +00:00
James M. Greene
7eb7a15548 Merge branch 'main' into test-set-pages-config 2023-02-01 11:00:11 -06:00
James M. Greene
b8c94fdc9e Merge pull request #52 from actions/dependabot-npm-updates
Add npm to Dependabot update list
2023-02-01 10:59:58 -06:00
James M. Greene
9b358e73bb Update tests to actually invoke the desired method instead of replicating it 2023-01-30 23:51:40 -06:00
James M. Greene
13e6bc7a20 Add npm to Dependabot update list 2023-01-30 22:11:54 -06:00
8 changed files with 5888 additions and 4225 deletions

View File

@@ -4,3 +4,8 @@ updates:
directory: '/'
schedule:
interval: 'weekly'
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'

View File

@@ -0,0 +1,48 @@
name: Rebuild distributables for Dependabot PRs
on:
push:
branches:
- 'dependabot/npm**'
permissions:
contents: write
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
rebuild-dist:
if: ${{ github.event.sender.login == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.PAGES_AUTOMATION_PAT }}
- name: Setup Node.JS
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Rebuild the dist/ directory
run: npm run prepare
- name: Commit any differences present in the dist/ directory
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after rebuild in dist folder. Committing..."
git add dist/
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "Update distributables after Dependabot 🤖"
echo "Pushing branch ${{ github.ref_name }}"
git push origin ${{ github.ref_name }}
fi

7107
dist/index.js vendored

File diff suppressed because it is too large Load Diff

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

44
dist/licenses.txt vendored
View File

@@ -110,25 +110,13 @@ SOFTWARE.
axios
MIT
Copyright (c) 2014-present Matt Zabriskie
# Copyright (c) 2014-present Matt Zabriskie & Collaborators
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
combined-stream
@@ -572,6 +560,30 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
proxy-from-env
MIT
The MIT License
Copyright (C) 2016-2018 Rob Wu <rob@robwu.nl>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
supports-color
MIT
MIT License

2865
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -25,15 +25,15 @@
"homepage": "https://github.com/actions/configure-pages#readme",
"dependencies": {
"@actions/core": "^1.10.0",
"axios": "^0.27.2",
"espree": "^9.3.2"
"axios": "^1.3.3",
"espree": "^9.4.1"
},
"devDependencies": {
"@vercel/ncc": "^0.34.0",
"eslint": "^8.23.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-github": "^4.3.7",
"jest": "^28.1.1",
"prettier": "^2.7.1"
"@vercel/ncc": "^0.36.1",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-github": "^4.6.0",
"jest": "^29.4.1",
"prettier": "^2.8.4"
}
}

View File

@@ -2,8 +2,7 @@ const fs = require('fs')
const path = require('path')
const core = require('@actions/core')
const { getConfigParserSettings } = require('./set-pages-config')
const { ConfigParser } = require('./config-parser')
const { setPagesConfig } = require('./set-pages-config')
const { getTempFolder, compareFiles } = require('./test-helpers')
// Get the temp folder
@@ -57,12 +56,12 @@ describe('configParser', () => {
fs.rmSync(fixtureTargetFile)
}
// Get settings for the static site generator
const settings = getConfigParserSettings({ staticSiteGenerator, siteUrl })
// Update the settings
settings.configurationFile = fixtureTargetFile
// Do the injection
new ConfigParser(settings).injectAll()
// Do the injections for the static site generator
setPagesConfig({
staticSiteGenerator,
generatorConfigFile: fixtureTargetFile,
siteUrl
})
// Read the expected file
const expectedFile = `${fixtureFolder}/${path.basename(
@@ -71,7 +70,7 @@ describe('configParser', () => {
)}.expected${defaultFileExtension}`
// Compare the actual and expected files
compareFiles(settings.configurationFile, expectedFile)
compareFiles(fixtureTargetFile, expectedFile)
})
})
@@ -90,16 +89,13 @@ describe('configParser', () => {
fs.rmSync(fixtureTargetFile)
}
// Get settings for the static site generator
const settings = getConfigParserSettings({
// Do the injections for the static site generator
setPagesConfig({
staticSiteGenerator,
generatorConfigFile: fixtureTargetFile,
siteUrl
})
// Do the injection
new ConfigParser(settings).injectAll()
// Read the expected file
const expectedFile = `${fixtureFolder}/${path.basename(
configurationFile,
@@ -107,7 +103,7 @@ describe('configParser', () => {
)}.expected${fileExtension}`
// Compare the actual and expected files
compareFiles(settings.configurationFile, expectedFile)
compareFiles(fixtureTargetFile, expectedFile)
})
})
})