-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/upgrade-to-react-18
- Loading branch information
Showing
1,046 changed files
with
247,754 additions
and
13,229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.