mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-05-15 20:12:21 +02:00
Fixes in deployments & ci/cd, readme info
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 1m3s
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 1m3s
This commit is contained in:
23
.github/workflows/node.js.yml
vendored
23
.github/workflows/node.js.yml
vendored
@@ -19,7 +19,6 @@ jobs:
|
||||
node-version: [18.x, 20.x, 22.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
|
||||
steps:
|
||||
- name: Test Summary
|
||||
uses: test-summary/action@v2
|
||||
@@ -38,3 +37,25 @@ jobs:
|
||||
- run: npm ci
|
||||
- run: npm run build --if-present
|
||||
- run: npm test
|
||||
- name: Output Build Status
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
const { context } = require('@actions/github');
|
||||
const core = require('@actions/core');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const readline = require('readline');
|
||||
|
||||
const outputPath = path.join(process.env.GITHUB_WORKSPACE, 'README.md');
|
||||
const fileStream = fs.createWriteStream(outputPath, { flags: 'a' });
|
||||
const rl = readline.createInterface({ input: process.stdin, output: fileStream });
|
||||
|
||||
if (context.isFailureGroup) {
|
||||
core.setFailed('Build failed');
|
||||
} else {
|
||||
rl.write('## Build Status\n');
|
||||
rl.write('\n');
|
||||
rl.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user