Update build
All checks were successful
CI / build (push) Successful in 30s

This commit is contained in:
Andrey Kernichniy 2026-03-02 23:52:14 +07:00
parent 71d5894598
commit 1c2f4051c7
7 changed files with 225 additions and 4 deletions

33
.forgejo/workflows/cd.yml Normal file
View file

@ -0,0 +1,33 @@
name: CD
on:
workflow_dispatch:
jobs:
deploy:
runs-on: [docker]
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: gxc-renderer-base
path: ./artifact
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: NPM Login
run: |
echo "//${{ vars.VERDACCIO_URL }}/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > ~/.npmrc
npm whoami
env:
VERDACCIO_URL: ${{ vars.VERDACCIO_URL }}
VERDACCIO_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}
- name: Publish to NPM
run: npm publish ./artifact --registry ${{ vars.VERDACCIO_URL }}
env:
VERDACCIO_URL: ${{ vars.VERDACCIO_URL }}