Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

add build gh-action

Jonathan Irvinf0fc91671276
diff --git a/.github/build.yaml b/.github/build.yaml
new file mode 100644
index 000000000..382ddb64a
--- /dev/null
+++ b/.github/build.yaml
@@ -0,0 +1,26 @@
+name: Build
+
+on:
+ push:
+ branches: [$default-branch]
+ pull_request:
+ branches: [$default-branch]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [20.x, 22.x]
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
+
+ steps:
+ - uses: actions/checkout@v4
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v4
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: 'npm'
+ - run: npm ci
+ - run: npm run build --if-present