Update CI/CD, added dev dependencies
All checks were successful
Checks / build (push) Successful in 19s

This commit is contained in:
Andrey Kernichniy 2026-03-07 01:41:13 +07:00
parent f106226e70
commit 546efcd2d0
8 changed files with 1524 additions and 6 deletions

View file

@ -1,55 +0,0 @@
name: CI
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: [docker]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: gxc-renderer-base-${{ github.sha }}
path: ./dist/
deploy:
needs: build
runs-on: [docker]
environment: production
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: gxc-renderer-base-${{ github.sha }}
path: ./artifact
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: ${{ vars.VERDACCIO_URL }}
- name: Publish to NPM
run: npm publish ./artifact --registry ${{ vars.VERDACCIO_URL }}
env:
VERDACCIO_URL: ${{ vars.VERDACCIO_URL }}
NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}