Skip to content

Commit

Permalink
chore(ci): deno publish errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vicary committed Mar 10, 2024
1 parent 670e716 commit 2bc85d8
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 21 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy-yoga.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Deploy
on: [push]
name: Deploy GraphQL Yoga example
on:
push:
branches:
- main
paths:
- examples/graphql-yoga/**

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
id-token: write
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Publish
name: Publish to JSR
on:
push:
branches:
- main
paths-ignore:
- examples/**

jobs:
publish:
Expand Down
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"name": "@vicary/fresh-graphql",
"version": "0.1.0",
"exports": "./mod.ts",
"lock": false
"lock": false,
"imports": { "graphql": "npm:graphql@^16.8.1" }
}
20 changes: 10 additions & 10 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
export {
defaultFieldResolver,
type DirectiveDefinitionNode,
type GraphQLFieldConfig,
type GraphQLFieldResolver,
type GraphQLInputFieldConfig,
type GraphQLScalarType,
type GraphQLSchema,
parse as parseGraphQL,
} from "graphql";
export { assert } from "jsr:@std/assert@^0.219.1";
export { ensureDir, walk } from "jsr:@std/fs@^0.219.1";
export {
Expand Down Expand Up @@ -30,13 +40,3 @@ export {
type SchemaMapper,
type UnionTypeMapper,
} from "npm:@graphql-tools/utils@^10.1.0";
export {
defaultFieldResolver,
type DirectiveDefinitionNode,
type GraphQLFieldConfig,
type GraphQLFieldResolver,
type GraphQLInputFieldConfig,
type GraphQLScalarType,
type GraphQLSchema,
parse as parseGraphQL,
} from "npm:graphql@^16.8.0";
14 changes: 8 additions & 6 deletions examples/graphql-yoga/fresh.gen.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
// DO NOT EDIT. This file is generated by fresh.
// DO NOT EDIT. This file is generated by Fresh.
// This file SHOULD be checked into source version control.
// This file is automatically updated during development when running `dev.ts`.

import config from "./deno.json" assert { type: "json" };
import * as $0 from "./routes/graphql.ts";
import * as $graphql from "./routes/graphql.ts";
import * as $index from "./routes/index.ts";

import { type Manifest } from "$fresh/server.ts";

const manifest = {
routes: {
"./routes/graphql.ts": $0,
"./routes/graphql.ts": $graphql,
"./routes/index.ts": $index,
},
islands: {},
baseUrl: import.meta.url,
config,
};
} satisfies Manifest;

export default manifest;

0 comments on commit 2bc85d8

Please sign in to comment.