Skip to content

Commit 9f7f23e

Browse files
authored
Merge pull request #3 from sysdiglabs/dev-cicd
Replace build with Yarn
2 parents a25731a + 8d980db commit 9f7f23e

File tree

4 files changed

+30
-51
lines changed

4 files changed

+30
-51
lines changed

.github/workflows/release.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
contents: write
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
- name: Set git identity
@@ -21,15 +21,21 @@ jobs:
2121
- name: Check whether it's the latest commit
2222
run: if [[ $(git ls-remote origin -h ${{ github.ref }} | cut -f1) != ${{ github.sha }} ]]; then exit 1; fi
2323
- name: Setup Node.js
24-
uses: actions/setup-node@v3.8.2
24+
uses: actions/setup-node@v4.0.2
2525
with:
26-
node-version: 14
26+
node-version: 20
27+
registry-url: https://registry.npmjs.org
28+
- name: Install build dependencies
29+
run: npm install -g yarn
2730
- name: Install dependencies
28-
run: npm ci
31+
run: |
32+
yarn global add @backstage/cli
33+
yarn clean
34+
yarn install --frozen-lockfile
2935
- name: Build
30-
run: npm run build
31-
- name: Run standard-version
32-
run: npm run release
36+
run: |
37+
yarn tsc --jsx react-jsx
38+
yarn build
3339
- name: Push new changelog to git
3440
run: git push --follow-tags
3541
- name: Release to GitHub releases

dev/index.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@sysdig/backstage-plugin-sysdig",
33
"version": "1.0.0",
4-
"main": "src/index.ts",
5-
"types": "src/index.ts",
4+
"main": "dist/index.esm.js",
5+
"types": "dist/index.d.ts",
66
"license": "Apache-2.0",
77
"publishConfig": {
88
"access": "public",
@@ -23,9 +23,9 @@
2323
"postpack": "backstage-cli package postpack"
2424
},
2525
"dependencies": {
26-
"@backstage/core-components": "workspace:^",
27-
"@backstage/core-plugin-api": "workspace:^",
28-
"@backstage/theme": "workspace:^",
26+
"@backstage/core-components": "^0.14.0",
27+
"@backstage/core-plugin-api": "^1.9.0",
28+
"@backstage/theme": "^0.5.1",
2929
"@material-ui/core": "^4.9.13",
3030
"@material-ui/icons": "^4.9.1",
3131
"@material-ui/lab": "^4.0.0-alpha.61",
@@ -35,10 +35,10 @@
3535
"react": "^16.13.1 || ^17.0.0"
3636
},
3737
"devDependencies": {
38-
"@backstage/cli": "workspace:^",
39-
"@backstage/core-app-api": "workspace:^",
40-
"@backstage/dev-utils": "workspace:^",
41-
"@backstage/test-utils": "workspace:^",
38+
"@backstage/cli": "^0.25.2",
39+
"@backstage/core-app-api": "^1.12.0",
40+
"@backstage/dev-utils": "^1.0.27",
41+
"@backstage/test-utils": "^1.5.0",
4242
"@testing-library/jest-dom": "^5.10.1",
4343
"@testing-library/react": "^12.1.3",
4444
"@testing-library/user-event": "^14.0.0",
@@ -48,5 +48,5 @@
4848
"config.d.ts",
4949
"dist"
5050
],
51-
"configSchema": "config.d.ts"
51+
"module": "./dist/index.esm.js"
5252
}

tsconfig.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
/* Visit https://aka.ms/tsconfig to read more about this file */
55

66
/* Projects */
7-
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
8-
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
7+
"incremental": false, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
8+
"composite": false, /* Enable constraints that allow a TypeScript project to be used with project references. */
99
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
1010
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
1111
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
@@ -50,15 +50,15 @@
5050
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
5151

5252
/* Emit */
53-
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
54-
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
53+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
54+
"declarationMap": true, /* Create sourcemaps for d.ts files. */
5555
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
56-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
56+
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
5757
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
5858
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
59-
// "outDir": "./", /* Specify an output folder for all emitted files. */
59+
"outDir": "./dist-types/src", /* Specify an output folder for all emitted files. */
6060
// "removeComments": true, /* Disable emitting comments. */
61-
// "noEmit": true, /* Disable emitting files from a compilation. */
61+
"noEmit": false, /* Disable emitting files from a compilation. */
6262
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
6363
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
6464
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */

0 commit comments

Comments
 (0)