fix: reinstall protoc step 3
This commit is contained in:
14
.github/workflows/publish.yml
vendored
14
.github/workflows/publish.yml
vendored
@@ -20,21 +20,13 @@ jobs:
|
|||||||
registry-url: "https://registry.npmjs.org/"
|
registry-url: "https://registry.npmjs.org/"
|
||||||
|
|
||||||
- name: Install protoc
|
- name: Install protoc
|
||||||
uses: arduino/setup-protoc@v3
|
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
|
||||||
with:
|
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Check protoc installation
|
|
||||||
run: |
|
|
||||||
protoc --version
|
|
||||||
which protoc
|
|
||||||
|
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Generate TS Protobuf (Directly)
|
- name: Generate TS Protobuf
|
||||||
# Запускаем команду напрямую в обход npm run, чтобы исключить баги с путями npm
|
run: npm run generate
|
||||||
run: protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit
|
|
||||||
|
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
run: npm publish
|
run: npm publish
|
||||||
|
|||||||
Reference in New Issue
Block a user