Feature/single package (#1)

This commit is contained in:
Daniel Lautzenheiser
2022-09-28 20:04:00 -06:00
committed by GitHub
parent 5963227066
commit 0b64464611
1110 changed files with 7842 additions and 257596 deletions

View File

@ -1,8 +0,0 @@
version = 1
[merge.automerge_dependencies]
versions = ["minor", "patch"]
usernames = ["renovate"]
[approve]
auto_approve_usernames = ["renovate"]

2
.github/CODEOWNERS vendored
View File

@ -1,2 +0,0 @@
* @netlify/cms-maintainers
website/ @netlify/cms-maintainers @netlify/docs

View File

@ -1,48 +0,0 @@
---
name: Bug report
about: Report a problem you are experiencing
title: 'Please replace with a clear and descriptive title'
labels: 'type: bug'
---
<!--
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please add a comment to the existing issue instead.
Please include as much of the information requested below as possible. If you fail to provide the requested information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
If you have an issue that can be shown visually, please provide a screenshot or GIF of the problem as well.
-->
**Describe the bug**
<!-- A clear and concise description of what the bug is. -->
**To Reproduce**
<!--
Steps to reproduce the behavior. For example:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
-->
**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
**Screenshots**
<!-- If applicable, add screenshots to help explain your problem. -->
**Applicable Versions:**
<!--You can find the CMS version by checking your web browser's developer tools console while in the CMS. -->
- Netlify CMS version: [e.g. 2.0.4]
- Git provider: [e.g. GitHub, BitBucket]
- OS: [e.g. Windows 7]
- Browser version [e.g. chrome 22, safari 11]
<!-- If using NPM: -->
- Node.JS version:
**CMS configuration**
<!-- Please link or paste your CMS `config.yml` here. -->
**Additional context**
<!-- Add any other context about the problem here. -->

View File

@ -1,26 +0,0 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'Please replace with a clear and descriptive title'
labels: 'type: feature'
---
<!--
Please make sure that we do not have any requests for this feature already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please add a comment to the existing issue instead.
-->
**Is your feature request related to a problem? Please describe.**
<!--
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
-->
**Describe the solution you'd like**
<!-- A clear and concise description of what you want to happen. -->
**Describe alternatives you've considered**
<!--
A clear and concise description of any alternative solutions or features you've considered.
-->
**Additional context**
<!-- Add any other context or screenshots about the feature request here. -->

View File

@ -1,37 +0,0 @@
<!--
Thanks for submitting a pull request!
Please make sure you've read and understood our contributing guidelines here:
https://github.com/netlify/netlify-cms/blob/master/CONTRIBUTING.md
If this is a bug fix, make sure your description includes "fixes #xxxx", or
"closes #xxxx", where #xxxx is the issue number.
Please provide enough information so that others can review your pull request.
The first two fields are mandatory:
-->
**Summary**
<!--
Explain the **motivation** for making this change.
What existing problem does the pull request solve?
-->
**Test plan**
<!--
Demonstrate the code is solid.
Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
-->
**Checklist**
Please add a `x` inside each checkbox:
- [ ] I have read the [contribution guidelines](../CONTRIBUTING.md).
- [ ] Code is formatted via running `yarn format`.
- [ ] Tests are passing via running `yarn test`.
- [ ] The status checks are successful (continuous integration). Those can be seen below.
**A picture of a cute animal (not mandatory but encouraged)**

17
.github/stale.yml vendored
View File

@ -1,17 +0,0 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 14
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: 'status: 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

View File

@ -1,33 +0,0 @@
name: Create release
on:
create
jobs:
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/netlify-cms@')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get semver number
id: get_semver
env:
TAG_NAME: ${{ github.ref }}
run: echo "::set-output name=pkg::${TAG_NAME:10}"
- name: Create release on GitHub API
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ steps.get_semver.outputs.pkg }}
body: |
:scroll: [Changelog](https://github.com/${{ github.repository }}/blob/${{ steps.get_semver.outputs.pkg }}/CHANGELOG.md)
draft: false
prerelease: false

View File

@ -1,32 +0,0 @@
name: 'Docs Linting:'
on:
push:
branches:
- master
paths:
- '.github/workflows/docslint.yml'
- 'website/**'
pull_request:
types: [opened, synchronize, reopened]
paths:
- '.github/workflows/docslint.yml'
- 'website/**'
jobs:
Prose:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Vale Linter
uses: errata-ai/vale-action@0dec3032fa59c4097deece7cf6ee3261b27bb3f1
with:
# Optional
files: website/content/docs
env:
# Required
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

View File

@ -1,36 +0,0 @@
name: Dependency License Scanning
on:
push:
branches:
- master
- chore/fossa-workflow
defaults:
run:
shell: bash
jobs:
fossa:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download fossa cli
run: |-
mkdir -p $HOME/.local/bin
curl https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash -s -- -b $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Fossa init
run: fossa init
- name: Set env
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
- name: Configuration
run: |-
sed -i "${line_number}s|.*| project: git@github.com:${GITHUB_REPOSITORY}.git|" .fossa.yml
cat .fossa.yml
- name: Upload dependencies
run: fossa analyze --debug
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}

View File

@ -1,30 +0,0 @@
name: Label PR
on:
pull_request:
types: [opened, edited]
jobs:
label-pr:
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-latest
steps:
- uses: netlify/pr-labeler-action@v1.0.0
if: startsWith(github.event.pull_request.title, 'fix')
with:
token: '${{ secrets.GITHUB_TOKEN }}'
label: 'type: bug'
- uses: netlify/pr-labeler-action@v1.0.0
if: startsWith(github.event.pull_request.title, 'chore')
with:
token: '${{ secrets.GITHUB_TOKEN }}'
label: 'type: chore'
- uses: netlify/pr-labeler-action@v1.0.0
if: startsWith(github.event.pull_request.title, 'feat')
with:
token: '${{ secrets.GITHUB_TOKEN }}'
label: 'type: feature'
- uses: netlify/pr-labeler-action@v1.0.0
if: startsWith(github.event.pull_request.title, 'security')
with:
token: '${{ secrets.GITHUB_TOKEN }}'
label: 'type: security'

View File

@ -1,108 +0,0 @@
name: Node CI
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
changes:
runs-on: ubuntu-latest
outputs:
cms: ${{ steps.filter.outputs.cms }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
cms:
- '!website/**'
build:
needs: changes
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
if: ${{ needs.changes.outputs.cms == 'true' }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '*'
check-latest: true
if: ${{ needs.changes.outputs.cms == 'true' }}
- name: log versions
run: node --version && npm --version && yarn --version
if: ${{ needs.changes.outputs.cms == 'true' }}
- name: install dependecies
run: yarn --frozen-lockfile --network-timeout 1000000 && yarn bootstrap
if: ${{ needs.changes.outputs.cms == 'true' }}
- name: run unit tests
run: yarn test:ci
env:
CI: true
NODE_OPTIONS: --max-old-space-size=4096
if: ${{ needs.changes.outputs.cms == 'true' }}
- name: build demo site
run: yarn build:demo
env:
NODE_OPTIONS: --max-old-space-size=4096
if: ${{ needs.changes.outputs.cms == 'true' }}
- uses: actions/upload-artifact@master
with:
name: dev-test-website-${{ runner.os }}
path: dev-test
if: ${{ needs.changes.outputs.cms == 'true' }}
e2e-with-cypress:
needs: [changes, build]
runs-on: ubuntu-latest
strategy:
matrix:
machine: [1, 2, 3, 4, 5, 6, 7, 8]
fail-fast: false
steps:
- uses: actions/checkout@v3
if: ${{ needs.changes.outputs.cms == 'true' }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '*'
check-latest: true
cache: yarn
if: ${{ needs.changes.outputs.cms == 'true' }}
- uses: actions/download-artifact@master
with:
name: dev-test-website-${{ runner.os }}
path: dev-test
if: ${{ needs.changes.outputs.cms == 'true' }}
- name: npm install
run: |
node --version
npm --version
yarn --version
yarn --frozen-lockfile
if: ${{ needs.changes.outputs.cms == 'true' }}
- name: e2e test
run: |
yarn test:e2e:run-ci
env:
IS_FORK: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
NODE_OPTIONS: --max-old-space-size=4096
MACHINE_COUNT: 8
MACHINE_INDEX: ${{ matrix.machine }}
if: ${{ needs.changes.outputs.cms == 'true' }}
- uses: actions/upload-artifact@v3
if: ${{ always() && needs.changes.outputs.cms == 'true' }}
with:
name: cypress-results-${{ matrix.machine }}
path: |
cypress/screenshots
cypress/videos