Skip to content

Commit

Permalink
New type system (#1063)
Browse files Browse the repository at this point in the history
Remove type system from GraphQL and replace it with type system using the GraphQL.Language nodes. More flexible and remove duplicate code.

+ Target .NET 6
- Remove msbuild based source generators
  • Loading branch information
pekkah authored Feb 15, 2022
1 parent 7a29e75 commit 6a09a73
Show file tree
Hide file tree
Showing 575 changed files with 29,795 additions and 104,666 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"gitversion.tool": {
"version": "5.1.2",
"version": "5.8.1",
"commands": [
"dotnet-gitversion"
]
Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Build and package

on:
push:
branches:
- master
- release/**
tags:
- v**
pull_request:
branches: [master]

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x

- name: Build packages
shell: pwsh
run: |
./build.ps1 -Output ./artifacts -CurrentBranch $Env:GITHUB_REF_NAME
- name: Publish build artifacts
uses: actions/upload-artifact@v2
with:
name: Packages
path: |
./artifacts/*.nupkg
./artifacts/*.tgz
- name: Publish to nuget
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags/')
shell: pwsh
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
run: |
dotnet nuget push "./artifacts/*.nupkg" -k $Env:NUGET_KEY
- uses: actions/setup-node@v2
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"

- name: Publish beta NPM package
if: github.ref_name == 'master'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }}
working-directory: ./artifacts/graphql.server.link
run: npm publish --tag beta

- name: Publish release NPM package
if: startsWith(github.ref, 'refs/tags/')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }}
working-directory: ./artifacts/graphql.server.link
run: npm publish
5 changes: 3 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>

<Project>
<PropertyGroup>
<LangVersion>9.0</LangVersion>
<LangVersion>10.0</LangVersion>
<Copyright>Pekka Heikura</Copyright>
<PackageProjectUrl>https://github.com/pekkah/tanka-graphql</PackageProjectUrl>
<RepositoryUrl>https://github.com/pekkah/tanka-graphql</RepositoryUrl>
Expand All @@ -10,4 +11,4 @@
<PackageTags>graphql,tanka,signalr,apollo</PackageTags>
<Authors>Pekka Heikura</Authors>
</PropertyGroup>
</Project>
</Project>
1 change: 1 addition & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
mode: ContinuousDeployment
next-version: 3.0
branches:
master:
tag: beta
Expand Down
4 changes: 0 additions & 4 deletions artifacts/tanka-docs-section.yml

This file was deleted.

165 changes: 0 additions & 165 deletions azure-pipelines.yml

This file was deleted.

Loading

0 comments on commit 6a09a73

Please sign in to comment.