Skip to content

Commit

Permalink
Chore: Added Release-please action
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwilbrink committed Oct 23, 2023
1 parent 13da654 commit 9dc7ad8
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 13 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: "@workm8/backstage-docker-plugin"
# The logic below handles the npm publication:
- uses: actions/checkout@v2
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@pascalwilbrink/plugin-docker",
"name": "@workm8/backstage-docker-plugin",
"version": "0.1.0",
"main": "src/index.ts",
"types": "src/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/components/DockerComponent/DockerComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import { dockerApiRef, Repository } from '../../apis';

import { useEntity } from '@backstage/plugin-catalog-react';

export const ANNOTATION_DOCKER_REPOSITORY = 'docker.com/repository';

import { Box, Chip } from '@material-ui/core';
import {
Table,
TableColumn,
} from '@backstage/core-components';

export const ANNOTATION_DOCKER_REPOSITORY = 'docker.com/repository';

const getDockerRepository = (entity: Entity) =>
entity.metadata.annotations?.[ANNOTATION_DOCKER_REPOSITORY]?.trim();

Expand Down
5 changes: 0 additions & 5 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import {
} from '@backstage/core-plugin-api';
import { dockerApiRef, DockerClient } from './apis';

import { rootRouteRef } from './routes';

export const dockerPlugin = createPlugin({
id: 'docker',
apis: [
Expand All @@ -25,9 +23,6 @@ export const dockerPlugin = createPlugin({
},
}),
],
routes: {
root: rootRouteRef,
},
});

export const DockerRepositoriesWidget = dockerPlugin.provide(
Expand Down
5 changes: 0 additions & 5 deletions src/routes.ts

This file was deleted.

0 comments on commit 9dc7ad8

Please sign in to comment.