From 97489a577f96d7aaf7d0055cb966720d1384a069 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 26 Jun 2023 00:02:17 -0400 Subject: [PATCH] ci: run golang scripts before npm --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1da9e7..afa18c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,14 +16,6 @@ jobs: with: node-version: 18.x cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - name: Install SSH key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.GITEA_SSH_KEY }} - known_hosts: ${{ secrets.GITEA_KNOWN_HOST }} - - name: Setup Golang run: | sudo apt-get update; @@ -43,6 +35,14 @@ jobs: gvm use go1.19 --default; cd src/golang; go get; + - run: npm ci + - run: npm run build --if-present + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.GITEA_SSH_KEY }} + known_hosts: ${{ secrets.GITEA_KNOWN_HOST }} + - name: Publish run: npm run semantic-release env: