Skip to content

Commit

Permalink
chore: test gha run
Browse files Browse the repository at this point in the history
  • Loading branch information
zzorica committed Sep 7, 2024
1 parent 5fb59ae commit 850e027
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 7 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Publish Plugins

on:
push:
branches:
- main

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: yarn install

- name: Check for changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
daytona:
- 'plugins/daytona/**'
daytona-web:
- 'plugins/daytona-web/**'
auth-backend-module-daytona-provider:
- 'plugins/auth-backend-module-daytona-provider/**'
- if: steps.changes.outputs.daytona == 'true'
name: Publish @daytona-io/backstage-plugin-daytona
run: |
cd plugins/daytona
yarn publish --non-interactive
- if: steps.changes.outputs.auth-backend-module-daytona-provider == 'true'
name: Publish @daytona-io/backstage-plugin-auth-backend-module-daytona-provider
run: |
cd plugins/auth-backend-module-daytona-provider
yarn publish --non-interactive
- if: steps.changes.outputs.daytona-web == 'true'
name: Publish @daytona-io/daytona-web
run: |
cd plugins/daytona-web
yarn publish --non-interactive
5 changes: 2 additions & 3 deletions plugins/auth-backend-module-daytona-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@adityasinghal26/backstage-plugin-auth-backend-module-daytona-provider",
"description": "The daytona-provider backend module for the auth plugin.",
"name": "@daytona-io/backstage-plugin-auth-backend-module-daytona-provider",
"version": "0.1.2",
"main": "src/index.ts",
"types": "src/index.ts",
Expand All @@ -15,7 +14,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/adityasinghal26/daytona-backstage-plugins",
"url": "https://github.com/daytonaio/backstage-plugins",
"directory": "plugins/auth-backend-module-daytona-provider"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions plugins/daytona-web/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@adityasinghal26/daytona-web",
"name": "@daytona-io/daytona-web",
"version": "0.1.1",
"main": "src/index.ts",
"types": "src/index.ts",
Expand All @@ -14,7 +14,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/adityasinghal26/daytona-backstage-plugins",
"url": "https://github.com/daytonaio/backstage-plugins",
"directory": "plugins/daytona-web"
},
"sideEffects": false,
Expand Down
4 changes: 2 additions & 2 deletions plugins/daytona/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@adityasinghal26/backstage-plugin-daytona",
"name": "@daytona-io/backstage-plugin-daytona",
"version": "0.2.5",
"main": "src/index.ts",
"types": "src/index.ts",
Expand All @@ -14,7 +14,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/adityasinghal26/daytona-backstage-plugins",
"url": "https://github.com/daytonaio/backstage-plugins",
"directory": "plugins/daytona"
},
"sideEffects": false,
Expand Down

0 comments on commit 850e027

Please sign in to comment.