From b9971f9bf7c6c9cba4918109e9ee9db419e23001 Mon Sep 17 00:00:00 2001 From: Tarsis Date: Wed, 26 Jun 2024 18:08:58 -0300 Subject: [PATCH] Updating app files --- .github/workflows/npm-publish.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 0049296..306d0d6 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -4,8 +4,12 @@ name: Node.js Package on: - release: - types: [created] + push: + branches: + - 'main' + schedule: + - cron: '50 23 * * *' + workflow_dispatch: jobs: build: @@ -14,7 +18,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - run: npm ci - run: npm test @@ -25,9 +29,9 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + NODE_AUTH_TOKEN: ${{ secrets.npm_token }}