Skip to content

Commit

Permalink
Merge branch 'main' into chore/upgrade-to-react-18
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuoushub authored Jun 23, 2022
2 parents 97423ae + 19204b2 commit e6bed51
Show file tree
Hide file tree
Showing 1,046 changed files with 247,754 additions and 13,229 deletions.
33 changes: 0 additions & 33 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,39 +31,6 @@ module.exports = {
],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'import/order': [
'error',
{
'newlines-between': 'always',
pathGroupsExcludedImportTypes: ['react'],
pathGroups: [
{
pattern: 'react',
group: 'builtin',
position: 'after',
},
{
pattern: '@redwoodjs/**',
group: 'external',
position: 'after',
},
{
pattern: 'src/lib/test',
group: 'parent',
position: 'before',
},
{
pattern: 'src/**',
group: 'parent',
position: 'before',
},
],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
curly: 'error',
},
overrides: [
Expand Down
35 changes: 35 additions & 0 deletions .github/actions/message_slack_publishing/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 💬 Message Slack Package Publishing
description: Send an npm publishing message to Slack
inputs:
title:
description: title
required: true
status:
description: status
required: true
version:
description: version
required: true
slack-webhook-url:
description: 'Slack webhook URL'
required: true
runs:
using: composite
steps:
- name: Get status emoji
id: get-status-emoji
uses: sergeysova/jq-action@v2.1.0
with:
cmd: 'echo "{ \"success\": \"✅\", \"failure\": \"🚨\" }" | jq .${{ inputs.status }} -r'

- name: 💬 Message Slack
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"title": "${{ inputs.title }}",
"status": "${{ steps.get-status-emoji.outputs.value }} ${{ inputs.status }}",
"version": "${{ inputs.version }}"
}
env:
SLACK_WEBHOOK_URL: ${{ inputs.slack-webhook-url }}
8 changes: 8 additions & 0 deletions .github/actions/only_doc_changes/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Docs
description: Determines if the PR only changes docs
outputs:
only-doc-changes:
description: If the PR only changes docs
runs:
using: node16
main: only_doc_changes.mjs
33 changes: 33 additions & 0 deletions .github/actions/only_doc_changes/only_doc_changes.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { exec, getExecOutput } from '@actions/exec'
import core from '@actions/core'

await exec('git fetch origin main')

const { stdout } = await getExecOutput('git diff origin/main --name-only')

const changedFiles = stdout.toString().trim().split('\n').filter(Boolean)

for (const changedFile of changedFiles) {
if (changedFile.startsWith('docs')) {
continue
}

for (const fileToIgnore of [
'CHANGELOG.md',
'CODE_OF_CONDUCT.md',
'CONTRIBUTING.md',
'CONTRIBUTORS.md',
'LICENSE',
'README.md',
'SECURITY.md',
]) {
if (changedFile === fileToIgnore) {
continue
}
}

core.setOutput('only-doc-changes', false)
process.exit(0)
}

core.setOutput('only-doc-changes', true)
28 changes: 28 additions & 0 deletions .github/actions/setup_job/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Setup job
inputs:
node-version:
required: false
default: 16
runs:
using: 'composite'
steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
shell: bash

- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-1234-${{ hashFiles('yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-1234-
- run: yarn install
shell: bash
20 changes: 0 additions & 20 deletions .github/issue_template.md

This file was deleted.

11 changes: 0 additions & 11 deletions .github/pull_request_template.md

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/build-eslint-jest.yaml

This file was deleted.

Loading

0 comments on commit e6bed51

Please sign in to comment.