From d30325c919a159033ae0edc712675bc3879b4860 Mon Sep 17 00:00:00 2001 From: jamsch <12927717+jamsch@users.noreply.github.com> Date: Sun, 17 Nov 2024 01:09:48 +1300 Subject: [PATCH] chore: run publish on successful build & fix typo --- .github/workflows/build.yml | 20 ++++++++++++++++++++ .github/workflows/publish.yml | 2 +- README.md | 10 +++++----- 3 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..03154e7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build + +on: + push: + branches: + - main + +jobs: + build: + name: Build project + runs-on: ubuntu-latest + steps: + - name: 🏗 Setup repo + uses: actions/checkout@v4 + + - name: 📦 Install dependencies + run: npm install + + - name: 🛠️ Run the build + run: npm run prepare diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 23f8b68..9780694 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,7 @@ name: Publish on: workflow_run: - workflows: ["Run Typescript", "Lint"] + workflows: ["Build"] branches: [main] types: [completed] diff --git a/README.md b/README.md index 1fe4666..b0a3d9d 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ function App() { setTranscript(event.results[0]?.transcript); }); useSpeechRecognitionEvent("error", (event) => { - console.log("error code:", event.error, "error messsage:", event.message); + console.log("error code:", event.error, "error message:", event.message); }); const handleStart = async () => { @@ -232,7 +232,7 @@ const resultListener = addSpeechRecognitionListener("result", (event) => { }); const errorListener = addSpeechRecognitionListener("error", (event) => { - console.log("error code:", event.error, "error messsage:", event.message); + console.log("error code:", event.error, "error message:", event.message); }); // Start speech recognition @@ -352,12 +352,12 @@ import { } from "expo-speech-recognition"; addSpeechRecognitionListener("error", (event) => { - console.log("error code:", event.error, "error messsage:", event.message); + console.log("error code:", event.error, "error message:", event.message); }); // or through the `useSpeechRecognitionEvent` hook useSpeechRecognitionEvent("error", (event) => { - console.log("error code:", event.error, "error messsage:", event.message); + console.log("error code:", event.error, "error message:", event.message); }); // or through the `ExpoSpeechRecognitionErrorCode` type @@ -649,7 +649,7 @@ const handleResult = (event: SpeechRecognitionEvent) => { recognition.registerEventListener("result", handleResult); recognition.registerEventListener("error", (event) => { - console.log("error code:", event.error, "error messsage:", event.message); + console.log("error code:", event.error, "error message:", event.message); }); recognition.registerEventListener("end", (event) => console.log("ended!"));