mirror of
https://github.com/valitydev/swag-anapi-v2.git
synced 2024-11-06 01:05:17 +00:00
32ed85f4bf
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
27 lines
649 B
YAML
27 lines
649 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@v4
|
|
- uses: valitydev/action-frontend/setup@v0.1
|
|
- run: npm ci
|
|
- name: Build
|
|
run: npm run build
|
|
- name: Codegen
|
|
run: npm run codegen
|
|
- uses: valitydev/action-frontend/publish@v0.1
|
|
with:
|
|
npm-token: ${{ secrets.NPM_TOKEN }}
|
|
directory: ./lib
|