Skip to content

Commit

Permalink
Merge branch 'main' into tina/updating-the-starter-image
Browse files Browse the repository at this point in the history
  • Loading branch information
isaaclombardssw authored Sep 17, 2024
2 parents ad8fbe4 + 6ed0a7b commit 1eb5885
Show file tree
Hide file tree
Showing 23 changed files with 26,583 additions and 18,412 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
root = true

[*.yml]
indent_style = space
space_indentation = 2
13 changes: 8 additions & 5 deletions .github/workflows/create-indices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, create-indices
node-version-file: '.nvmrc'
- name: pnpm install, create-indices
run: |
yarn install
yarn create-indices
pnpm install
pnpm create-indices
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_SEARCH_KEY: ${{ secrets.ALGOLIA_SEARCH_KEY }}
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/dispatch-create-whats-new-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Create What's New Page for TinaCMS or TinaCloud

on:
workflow_dispatch:
inputs:
project:
description: 'The project to create the Whats New page for.'
required: true
versionNumber:
description: 'The version of the project to create the Whats New page for.'
required: true
dateReleased:
description: 'The date the version was released.'
required: true
releaseNotes:
description: 'The release notes for the version.'
required: true

permissions:
contents: write
pull-requests: write

jobs:
create-whats-new-page:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Create What's New Page
run: |
./scripts/create-release-notes.sh
env:
PROJECT_NAME: ${{ github.event.inputs.project }}
VERSION_NUMBER: ${{ github.event.inputs.versionNumber }}
DATE_RELEASED: ${{ github.event.inputs.dateReleased }}
RELEASE_NOTES: ${{ github.event.inputs.releaseNotes }}

- name: Create Pull Request
id: create-pull-request
uses: peter-evans/create-pull-request@v7
with:
commit-message: Release Notes - Add ${{ github.event.inputs.project }} ${{ github.event.inputs.versionNumber }}
title: Release Notes - Add ${{ github.event.inputs.project }} ${{ github.event.inputs.versionNumber }}
body: |
This PR adds the release notes for ${{ github.event.inputs.project }} ${{ github.event.inputs.versionNumber }}.
This was created automatically by a GitHub Action - `.github/workflows/dispatch-create-whats-new-page.yml`
branch: releaseNotes/${{ github.event.inputs.project }}-${{ github.event.inputs.versionNumber }}
# We only expect changes to these folders
add-paths: |
content/*
- name: Enable Auto-Merge
if: ${{ steps.create-pull-request.outputs.pull-request-number }}
run: gh pr merge -s --auto ${{ steps.create-pull-request.outputs.pull-request-number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 16 additions & 14 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,29 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, build, and test
run: |
yarn install
yarn build
yarn lint
yarn test
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: pnpm install
run: pnpm i
- name: pnpm build
run: pnpm build
- name: pnpm lint
run: pnpm lint
- name: pnpm test
run: pnpm test
env:
CI: true
- name: yarn export
- name: pnpm export
run: |
yarn export
pnpm export
env:
CI: true
- name: 📉 Check HTML
Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ out

# dependencies
node_modules
package-lock.json
yarn.lock
!/yarn.lock
test/node_modules

# logs & pids
*.log
pids
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# coverage
.nyc_output
Expand Down
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.probe": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"editor.formatOnSave": true,
// Runs Prettier, then ESLint
"editor.codeActionsOnSave": ["source.fixAll.eslint", "source.sortImports"],
"editor.formatOnPaste": false,
"editor.tabSize": 2,
"search.exclude": {
"**/.pnp.*": true
},
"typescript.enablePromptUseWorkspaceTsdk": true
}
Empty file added .yarnrc.yml
Empty file.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,26 @@ Source code for the [tina.io](https://tina.io) website.

```
cp .env.example .env
yarn install
yarn dev
pnpm i
pnpm dev
```

## Vision
Make a wesbite to communicate the awesomeness of TinaCMS

## Tech Stack
- NextJS
- TinaCMS
- GitHub
- Markdown


### Testing Local TinaCMS Changes

If you have the **tinacms** repository cloned locally you can use it when running **tina.io**:

```
TINA=../path/to/tinacms yarn dev
TINA=../path/to/tinacms pnpm dev
```

You can also specify which packages you want to watch:
Expand Down
Loading

0 comments on commit 1eb5885

Please sign in to comment.