From fc69402efd3dac1916d6812373f50b2fd40f7b39 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Sun, 10 Nov 2024 00:29:08 +0000 Subject: [PATCH] add forgejo workflow and deploy v1.4.0 --- .forgejo/workflows/deploy.yml | 25 +++++++++++++++++++++++++ package.json | 4 ++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .forgejo/workflows/deploy.yml diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..51f9ef8 --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,25 @@ +on: + push: + branches: + - master + + +jobs: + deploy: + runs-on: arch + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Install dependencies + run: time npm install + - name: Run Tests + run: npm run test -- --ignore-only + - name: Deply if new version + run: | + echo "" + echo "------------------------------------" + echo "" + CURR_VER="$(cat package.json | jq -r .name)_v$(cat package.json | jq -r .version)" + echo "A" + CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)" + echo "B" diff --git a/package.json b/package.json index e5fbd56..db5a3ae 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "flaska", - "version": "1.3.5", + "version": "1.4.0", "description": "Flaska is a micro web-framework for node. It is designed to be fast, simple and lightweight, and is distributed as a single file module with no dependencies.", "main": "flaska.mjs", "scripts": { - "test": "eltro", + "test": "eltro -r dot", "test:watch": "eltro -r dot -w test" }, "watch": {