From 3b3f2764bc937dccd18f85f31da950db1e75ed06 Mon Sep 17 00:00:00 2001 From: Obelous <47227283+0belous@users.noreply.github.com> Date: Tue, 24 Jun 2025 19:01:32 +0100 Subject: [PATCH] update workflow --- .github/workflows/{node.js.yml => update.yml} | 11 +++++++---- package.json | 5 +---- 2 files changed, 8 insertions(+), 8 deletions(-) rename .github/workflows/{node.js.yml => update.yml} (64%) diff --git a/.github/workflows/node.js.yml b/.github/workflows/update.yml similarity index 64% rename from .github/workflows/node.js.yml rename to .github/workflows/update.yml index 4e38585..6bf5b10 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/update.yml @@ -1,5 +1,9 @@ -name: Node.js CI -on: [push] +on: + push: + branches: [ main ] + schedule: + - cron: '0 0 * * *' + jobs: build: runs-on: ubuntu-latest @@ -9,5 +13,4 @@ jobs: with: node-version: '20' cache: 'npm' - - run: npm install - - run: npm run + - run: node update.js diff --git a/package.json b/package.json index 3045c55..77f73d3 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,5 @@ "license": "ISC", "author": "", "type": "commonjs", - "main": "update.js", - "scripts": { - "run": "echo \"Error: no test specified\" && exit 1" - } + "main": "update.js" }