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 11, 2024
1 parent 670e716 commit 71b97d6
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 19 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
11 changes: 9 additions & 2 deletions .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 All @@ -16,4 +18,9 @@ jobs:
- uses: actions/checkout@v4

- name: Publish package
run: npx jsr publish
# run: npx jsr publish
run: |
curl -fsSL https://deno.land/install.sh | sh
export DENO_INSTALL="/home/runner/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
deno publish
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GraphQL development for Deno Fresh.

## Live Demo

1. [`graphql-yoga`](https://fresh-graphql-yoga.deno.dev/graphql)
1. [`graphql-yoga`](https://fresh-graphql-yoga.deno.dev)
1. `apollo-server` (soon™)

## Why `fresh-graphql`?
Expand Down Expand Up @@ -135,7 +135,7 @@ export const resolver = async function* (_, { from }) {
### Side notes

1. `@graphql-yoga/common` is chosen for it's simplicity, you may use any GraphQL
serveres compatible with `@graphql-tools/schema`.
servers compatible with `@graphql-tools/schema`.
1. `graphql.gen.ts` This is the manifest file generated whenever you make
changes to source codes in the `./graphql` directory.

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,
"nodeModulesDir": false
}
2 changes: 1 addition & 1 deletion deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ export {
type GraphQLScalarType,
type GraphQLSchema,
parse as parseGraphQL,
} from "npm:graphql@^16.8.0";
} from "npm:graphql@^16.8.1";
4 changes: 0 additions & 4 deletions examples/graphql-yoga/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
},
"imports": {
"$fresh/": "https://deno.land/x/[email protected]/",
"$std/": "https://deno.land/[email protected]/",
"@graphql-tools/schema": "npm:@graphql-tools/schema@^10.0.0",
"@graphql-tools/utils": "npm:@graphql-tools/utils@^10.0.0",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"@vicary/fresh-graphql": "jsr:@vicary/fresh-graphql@^0.1.0",
"graphql": "npm:graphql@^16.0.0",
"graphql-yoga": "npm:graphql-yoga@^5.1.1",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/"
Expand Down
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 71b97d6

Please sign in to comment.