Skip to content

RPC Error handling. #253

RPC Error handling.

RPC Error handling. #253

Workflow file for this run

name: CI Build
on:
push:
jobs:
runer:
runs-on: [ubuntu-latest]
steps:
- name: install nodejs and node-prune
run: |
cd /opt/
wget https://nodejs.org/dist/v16.16.0/node-v16.16.0-linux-x64.tar.xz
ls -l
tar -Jxvf node-v16.16.0-linux-x64.tar.xz
ls -l
sudo ln -s /opt/node-v16.16.0-linux-x64/bin/node /usr/bin/node
sudo ln -s /opt/node-v16.16.0-linux-x64/bin/npm /usr/bin/npm
wget https://github.com/tj/node-prune/releases/download/v1.0.1/node-prune_1.0.1_linux_amd64.tar.gz
tar -xvf node-prune_1.0.1_linux_amd64.tar.gz
sudo ln -s /opt/node-prune /usr/bin/node-prune
cd ~;
mkdir workdir
cd workdir
- name: checkout
uses: actions/[email protected]
- name: Main
env:
signKey: ${{ secrets.SIGNKEY }}
packerNoRestart : 1
run: |
npm install
node-prune
node app
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: mcsmanager-build
path: |
./dist/app.apkg
./dist/app.js
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
./dist/app.apkg
./dist/app.js
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_REPOSITORY: h5mcbox/MCSManager-plus-Worker