Skip to content

Commit 9e1f7e1

Browse files
committed
chore: ci wip
1 parent c7fb785 commit 9e1f7e1

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,9 @@ jobs:
3434
env:
3535
CI: true
3636

37-
- name: Get the Prerelease tag
38-
id: prerelease-tag
39-
uses: yuya-takeyama/docker-tag-from-github-ref-action@2b0614b1338c8f19dd9d3ea433ca9bc0cc7057ba
40-
with:
41-
remove-version-tag-prefix: false
42-
4337
- name: Bump version to prerelease
4438
run: |
45-
PRERELEASE_TAG=nightly-$(echo "${{ steps.prerelease-tag.outputs.tag }}" | sed -r 's/[^a-z0-9]+/-/gi')
39+
PRERELEASE_TAG=nightly-$(echo "${{ github.ref_name }}" | sed -r 's/[^a-z0-9]+/-/gi')
4640
npm version prerelease --preid $PRERELEASE_TAG-$COMMIT_DATE-$GIT_HASH
4741
4842
- name: Generate types

v1/typescript-definitions/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ The instructions below are for developers who want to work on the Typescript def
6666
```bash
6767

6868
npm install
69+
npm run generate-types # If any of the specification has changed
6970
npm run build
7071
# or
7172
npm run watch

v1/typescript-definitions/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v1/typescript-definitions/src/generated/graphics-manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ export interface HttpsOgrafEbuIoV1SpecificationJsonSchemasGraphicsSchemaJson {
463463
/**
464464
* The main entry point, ie the path to the main javascript file of the Graphic.
465465
*/
466-
main?: string;
466+
main: string;
467467
/**
468468
* Name of the Graphic
469469
*/

v1/typescript-definitions/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ import * as GeneratedGraphicsManifest from "./generated/graphics-manifest";
88
export { GeneratedGraphicsManifest }
99

1010
// Also export the GraphicsManifest types using simplified names
11-
export type GraphicsManifest = GeneratedGraphicsManifest.HttpsOgrafEbuIoV1Draft0SpecificationJsonSchemasGraphicsSchemaJson
12-
export type GraphicsManifestCustomAction = GeneratedGraphicsManifest.HttpsOgrafEbuIoV1Draft0SpecificationJsonSchemasLibActionJson
11+
export type GraphicsManifest = GeneratedGraphicsManifest.HttpsOgrafEbuIoV1SpecificationJsonSchemasGraphicsSchemaJson
12+
export type GraphicsManifestCustomAction = GeneratedGraphicsManifest.HttpsOgrafEbuIoV1SpecificationJsonSchemasLibActionJson
1313

0 commit comments

Comments
 (0)