2022-03-31 15:56:42 +00:00
|
|
|
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:
|
2024-01-09 10:27:40 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-03-31 15:56:42 +00:00
|
|
|
- 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 }}
|
2022-04-12 15:00:52 +00:00
|
|
|
directory: ./lib
|