From f4630309de37a9058e8d50c86a9e588b38bce114 Mon Sep 17 00:00:00 2001 From: Mihajlo Date: Tue, 27 Jul 2021 12:18:44 +0200 Subject: [PATCH] chore: ci script fixing --- .github/workflows/npmpublish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 8c48c28..6a5ffe2 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -23,7 +23,8 @@ jobs: - name: Build Project run: npm run build - - name: Install SSH Key + + - name: Install SSH Key uses: shimataro/ssh-key-action@v2 with: key: ${{ secrets.DCGITLAB_KEY }} @@ -55,12 +56,11 @@ jobs: run: openvpn3 session-start --config .github/vpn/config.ovpn - name: Deploy sasjs-tests - run: | - npm i + run: | npm install -g replace-in-files-cli cd sasjs-tests replace-in-files --regex='"@sasjs/adapter".*' --replacement='"@sasjs/adapter":"2.8.13",' ./package.json - npm i + npm ci replace-in-files --regex='"userName".*' --replacement='"userName":"${{ secrets.SAS_USERNAME }}",' ./public/config.json replace-in-files --regex='"password".*' --replacement='"password":"${{ secrets.SAS_PASSWORD }}",' ./public/config.json replace-in-files --regex='"serverType".*' --replacement='"serverType":"SASVIYA",' ./public/config.json