Skip to content

Commit

Permalink
chore: move to lerna (wundergraph#24)
Browse files Browse the repository at this point in the history
* feat: move to lerna

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
StarpTech and github-actions[bot] committed Jun 2, 2022
1 parent 43ae189 commit a16c65a
Show file tree
Hide file tree
Showing 28 changed files with 1,739 additions and 711 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/config.json

This file was deleted.

4 changes: 1 addition & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ By making a contribution to this project, I certify that:
#### Checklist

- [ ] run `make test`
- [ ] PR title must follow [conventional-commit-standard](https://github.com/wundergraph/wundergraph/blob/main/CONTRIBUTING.md#conventional-commit-standard)
- [ ] tests and/or benchmarks are included
- [ ] documentation is changed or added
- [ ] commit message and code follows the [Code of conduct](https://github.com/wundergraph/wundergraph/blob/main/CODE_OF_CONDUCT.md)

#### Before merge
- [ ] Squashed commit must follow [conventional-commit-standard](https://github.com/wundergraph/wundergraph/blob/main/CONTRIBUTING.md#conventional-commit-standard)

<!--
Squashed commit must follow https://www.conventionalcommits.org/en/v1.0.0/ so we can generate the changelog.
-->
62 changes: 0 additions & 62 deletions .github/workflows/changesets.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/engine-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}

- run: pnpm boot
- run: make engine-dev
- run: make test-go
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/engine-release-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
env:
CI: true
WORKING_DIRECTORY: '.'

concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: false

jobs:
goreleaser:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/engine-release-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
env:
CI: true
WORKING_DIRECTORY: '.'

concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: false

jobs:
goreleaser:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/engine-release-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
env:
CI: true
WORKING_DIRECTORY: '.'

concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: false

jobs:
goreleaser:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: "Pull Request Labeler"
on:
- pull_request_target

concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: false

jobs:
label:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/packages-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ on:
- main
- next
paths:
- '.changeset/*'
- 'packages/**/*'
- '.github/workflows/packages-ci.yaml'
- '!packages/*-testapp/**'
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/packages-release-preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Packages Release Preview

on:
push:

concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: false

env:
CI: true

jobs:
version:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/node
with:
working-directory: ${{ env.WORKING_DIRECTORY }}

- run: pnpm boot --ignore-scripts

- name: Generate next release (dry-run)
run: pnpm run preview:version:packages --yes

- name: Show CHANGELOG.md
run: echo -e "\`\`\`diff\n$(git --no-pager diff './packages/*/CHANGELOG.md')\n\`\`\`" >> $GITHUB_STEP_SUMMARY
77 changes: 77 additions & 0 deletions .github/workflows/packages-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Packages Release

on:
workflow_dispatch:
inputs:
type:
description: 'Release type: "stable" or "next". Versions are determined automatically via conventional commits.'
required: false
default: 'stable'

concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: false

env:
CI: true

jobs:
stable-version:
timeout-minutes: 10
runs-on: ubuntu-latest
if: ${{ github.event.inputs.type == 'stable' }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/node
with:
working-directory: ${{ env.WORKING_DIRECTORY }}

- run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
shell: bash
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: pnpm boot --ignore-scripts

- run: pnpm build

- name: Publish packages & Create Github Releases
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
pnpm run ci:publish:packages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

next-version:
timeout-minutes: 10
runs-on: ubuntu-latest
if: ${{ github.event.inputs.type == 'next' }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/node
with:
working-directory: ${{ env.WORKING_DIRECTORY }}

- run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
shell: bash
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: pnpm boot --ignore-scripts

- run: pnpm build

- name: Publish packages & Create Github Releases
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
pnpm run ci:publish:packages-next
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/pr-title.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check PR title
on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3

- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Check if PR title follows conventional commit guidelines
run: |
npm i -g @commitlint/[email protected] @commitlint/[email protected]
echo "${{ github.event.pull_request.title }}" | commitlint
4 changes: 3 additions & 1 deletion .github/workflows/wunderctl-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
release:
types: [released]

concurrency: ${{ github.workflow }}-${{ github.ref }}
concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: false

env:
CI: true
Expand Down
59 changes: 49 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,62 @@
# IDE
.vscode
.idea
.wundergraph/generated
vendor

# Deep Directories
node_modules
generated
*.zip

pkg/templates/assets/templates/**/*.lock
pkg/templates/assets/templates/**/*lock.json
!pkg/templates/assets/templates/**/.wundergraph
/wunderctl

examples/**/*lock*

demo
# Directories
dist
*.logs
types/go/wgpb

# Next.js build output
.next
out

# Files
*.tsbuildinfo
.DS_Store
.eslintcache
*.logs
examples/**/*lock*
/wunderctl

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# Coverage directory used by tools like istanbul
coverage
*.lcov

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

.DS_Store
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

pnpm exec commitlint --edit "${1}"

pnpm run pre-commit
pnpm exec lint-staged
Loading

0 comments on commit a16c65a

Please sign in to comment.