Skip to content

Commit

Permalink
chore: update gha to allow manualy run and ignore single publish error
Browse files Browse the repository at this point in the history
  • Loading branch information
zzorica committed Sep 8, 2024
1 parent 5f875fb commit cf44d37
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Plugins

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -22,9 +23,6 @@ jobs:
registry-url: 'https://registry.npmjs.org'
scope: '@daytona-io'

- name: Install dependencies
run: yarn install

- name: Check for changes
uses: dorny/paths-filter@v3
id: changes
Expand All @@ -37,20 +35,27 @@ jobs:
auth-backend-module-daytona-provider:
- 'plugins/auth-backend-module-daytona-provider/**'
- if: steps.changes.outputs.daytona == 'true'
- if: steps.changes.outputs.daytona == 'true' || steps.changes.outputs.daytona-web == 'true' || steps.changes.outputs.auth-backend-module-daytona-provider == 'true'
name: Install dependencies
run: yarn install

- if: steps.changes.outputs.daytona == 'true' || github.event_name == 'workflow_dispatch'
name: Publish @daytona-io/backstage-plugin-daytona
run: |
cd plugins/daytona
yarn publish --non-interactive --access public
continue-on-error: true

- if: steps.changes.outputs.auth-backend-module-daytona-provider == 'true'
- if: steps.changes.outputs.auth-backend-module-daytona-provider == 'true' || github.event_name == 'workflow_dispatch'
name: Publish @daytona-io/backstage-plugin-auth-backend-module-daytona-provider
run: |
cd plugins/auth-backend-module-daytona-provider
yarn publish --non-interactive --access public
continue-on-error: true

- if: steps.changes.outputs.daytona-web == 'true'
- if: steps.changes.outputs.daytona-web == 'true' || github.event_name == 'workflow_dispatch'
name: Publish @daytona-io/daytona-web
run: |
cd plugins/daytona-web
yarn publish --non-interactive --access public
continue-on-error: true

0 comments on commit cf44d37

Please sign in to comment.