|
8 | 8 | release: |
9 | 9 | if: github.repository == 'ydb-platform/ydb-embedded-ui' |
10 | 10 | runs-on: ubuntu-latest |
11 | | - env: |
12 | | - ASSET_NAME: embedded-ui |
13 | 11 | steps: |
14 | 12 | - uses: actions/checkout@v4 |
15 | 13 | - uses: actions/setup-node@v4 |
16 | 14 | with: |
17 | 15 | node-version: 16 |
18 | | - registry-url: https://registry.npmjs.org |
19 | 16 | - run: npm ci |
20 | 17 | - run: npm test |
21 | 18 | - uses: GoogleCloudPlatform/release-please-action@v3 |
22 | | - id: release |
23 | 19 | with: |
24 | 20 | token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }} |
25 | 21 | release-type: node |
26 | | - last-release-sha: f816d60ee3f545b1a08f893c5b7ae809cd15bcb3 |
27 | | - - run: npm publish |
28 | | - if: ${{ steps.release.outputs.release_created }} |
29 | | - env: |
30 | | - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |
31 | | - - run: npm run build:embedded |
32 | | - if: ${{ steps.release.outputs.release_created }} |
33 | | - - name: Release Artifact Upload |
34 | | - if: ${{ steps.release.outputs.release_created }} |
35 | | - env: |
36 | | - GITHUB_TOKEN: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }} |
37 | | - run: | |
38 | | - zip -r $ASSET_NAME.zip build |
39 | | - gh release upload ${{ steps.release.outputs.tag_name }} $ASSET_NAME.zip |
40 | | - - name: Refresh Event Dispatch |
41 | | - if: ${{ steps.release.outputs.release_created }} |
42 | | - uses: peter-evans/repository-dispatch@v2 |
43 | | - with: |
44 | | - token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }} |
45 | | - repository: ydb-platform/ydb |
46 | | - event-type: embedded_ui_refresh |
47 | | - client-payload: | |
48 | | - { |
49 | | - "tag_name": "${{ steps.release.outputs.tag_name }}", |
50 | | - "asset_name": "${{ env.ASSET_NAME }}", |
51 | | - "repository": "${{ github.repository }}" |
52 | | - } |
0 commit comments