Change build setup of JS clients, reintroduce beta publishing after losing it due to unmerged code (#238)

This commit is contained in:
Janos Dobronszki
2021-10-22 09:49:47 +01:00
committed by GitHub
parent 7cc2a86d0f
commit 293d5ecdde
140 changed files with 13946 additions and 643 deletions

View File

@@ -60,8 +60,10 @@ jobs:
go run cmd/publisher/main.go .
env:
MICRO_ADMIN_TOKEN: ${{ secrets.MICRO_ADMIN_TOKEN }}
- name: Generate package
working-directory: services
if: github.ref == 'refs/heads/master'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
@@ -70,6 +72,19 @@ jobs:
go install;
cd ../..;
clients .
- name: Generate beta package
working-directory: services
if: github.ref == 'refs/heads/beta'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
IS_BETA: yup
run: |
pwd
cd cmd/clients;
go install;
cd ../..;
clients .
- uses: EndBug/add-and-commit@v7
with:
@@ -84,3 +99,13 @@ jobs:
npm install
npm run build
npm publish --access public
- name: npm install beta
working-directory: services
if: github.ref == 'refs/heads/beta'
run: |
git status
cd clients/ts;
npm install
npm run build
npm publish --access public --tag beta