From d2af2006fddc12d8d579d6571520ef269a69eb27 Mon Sep 17 00:00:00 2001 From: watsonb8 Date: Wed, 5 Jun 2024 18:58:50 -0500 Subject: [PATCH] WIP --- .gitea/workflows/ci.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 3ea0a9d..7eecf88 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -28,6 +28,7 @@ jobs: with: node-version: 18 - id: get_version + name: Set Version run: | export version=`node -p "require('./package.json').version"` export commit=`echo $GITHUB_SHA | cut -c1-5` @@ -43,7 +44,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - run: npm config set @watsonb8:registry https://gitea.watsonlabs.net/api/packages/watsonb8/npm/ - - env: + - name: Publish + env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} COMMIT: ${{ needs.version.outputs.commit }} run: | @@ -69,6 +71,8 @@ jobs: echo 3 ssh-keyscan -p 22 homebridge.me >> ~/.ssh/known_hosts echo 4 + sudo apt update + echo 5 sudo apt-get install sshpass - name: Remove old Package @@ -82,4 +86,3 @@ jobs: npm install -g @watsonb8/homebridge-hue-chase systemctl restart homebridge ENDSSH - \ No newline at end of file