Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haxgun committed Oct 29, 2023
1 parent c3984ef commit 2c904d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/[email protected]

- name: Install dependencies
uses: bahmutov/npm-install@v1.8.36
run: npm install --package-lock-only && npm ci

- name: Run linters
uses: wearerequired/lint-action@v2
Expand All @@ -39,9 +39,9 @@ jobs:
- name: Connect and Pull
run: |
if [ $GITHUB_REF == 'refs/heads/main' ]; then
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && git checkout main && git pull && npm ci && npm install && npm run build && exit"
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && git checkout main && git pull && npm install --package-lock-only && npm ci && npm run build && exit"
else
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.TEST_WORK_DIR }} && git checkout ${GITHUB_REF##*/} && git pull && npm ci && npm install && npm run build && exit"
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.TEST_WORK_DIR }} && git checkout ${GITHUB_REF##*/} && git pull && npm install --package-lock-only && npm ci && npm run build && exit"
fi
- name: Cleanup
Expand Down

0 comments on commit 2c904d4

Please sign in to comment.