Skip to content

Commit

Permalink
chore: run publish on successful build & fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jamsch committed Nov 16, 2024
1 parent 24693ad commit d30325c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish
on:
workflow_run:
workflows: ["Run Typescript", "Lint"]
workflows: ["Build"]
branches: [main]
types: [completed]

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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!"));
Expand Down

0 comments on commit d30325c

Please sign in to comment.