ci: run golang scripts before npm

This commit is contained in:
Derrick Hammer 2023-06-26 00:02:17 -04:00
parent 589821c570
commit 97489a577f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 8 additions and 8 deletions

View File

@ -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: