From 6cb10530a30dca5b743ff8f3c629edd0cab68400 Mon Sep 17 00:00:00 2001 From: ChrQR Date: Sat, 27 Apr 2024 09:17:06 +0200 Subject: [PATCH] changed workflow for node.js build --- .gitea/workflows/first.yaml | 18 ------------------ .gitea/workflows/node-build.yaml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 18 deletions(-) delete mode 100644 .gitea/workflows/first.yaml create mode 100644 .gitea/workflows/node-build.yaml diff --git a/.gitea/workflows/first.yaml b/.gitea/workflows/first.yaml deleted file mode 100644 index 3e2da4b..0000000 --- a/.gitea/workflows/first.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [push] -jobs: - Explore-Gitea-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v3 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This jobs status is ${{ gitea.status }}." \ No newline at end of file diff --git a/.gitea/workflows/node-build.yaml b/.gitea/workflows/node-build.yaml new file mode 100644 index 0000000..b820a80 --- /dev/null +++ b/.gitea/workflows/node-build.yaml @@ -0,0 +1,15 @@ +name: Node.js CI +on: [push] +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + - run: yarn ci + - run: yarn run build --production --if-present