ci: run golang scripts before npm
This commit is contained in:
parent
589821c570
commit
97489a577f
|
@ -16,14 +16,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
cache: 'npm'
|
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
|
- name: Setup Golang
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update;
|
sudo apt-get update;
|
||||||
|
@ -43,6 +35,14 @@ jobs:
|
||||||
gvm use go1.19 --default;
|
gvm use go1.19 --default;
|
||||||
cd src/golang;
|
cd src/golang;
|
||||||
go get;
|
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
|
- name: Publish
|
||||||
run: npm run semantic-release
|
run: npm run semantic-release
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in New Issue