This commit is contained in:
parent
ee0326c9f4
commit
fc69402efd
2 changed files with 27 additions and 2 deletions
25
.forgejo/workflows/deploy.yml
Normal file
25
.forgejo/workflows/deploy.yml
Normal file
|
@ -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"
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue