mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Change build setup of JS clients, reintroduce beta publishing after losing it due to unmerged code (#238)
This commit is contained in:
25
.github/workflows/publish.yml
vendored
25
.github/workflows/publish.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user