mirror of
https://github.com/valitydev/magista-proto.git
synced 2024-11-06 08:25:16 +00:00
25 lines
706 B
YAML
25 lines
706 B
YAML
name: 'Frontend: Publish'
|
|
|
|
on:
|
|
push:
|
|
branches: ['master', 'main']
|
|
|
|
jobs:
|
|
configured:
|
|
uses: valitydev/action-frontend/.github/workflows/configured.yml@v0.1
|
|
publish:
|
|
name: Publish
|
|
runs-on: ubuntu-latest
|
|
needs: configured
|
|
if: needs.configured.outputs.exists == 'true'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: valitydev/action-frontend/setup@v1
|
|
- uses: valitydev/action-setup-thrift@v1.0.3
|
|
- run: npm i # protocols don't always update the package-lock.json, so installing from package.json
|
|
- name: Build
|
|
run: npm run codegen
|
|
- uses: valitydev/action-frontend/publish@v1
|
|
with:
|
|
npm-token: ${{ secrets.NPM_TOKEN }}
|