Skip to content

Commit cc7d937

Browse files
committed
chore: CREATED CORE MONOREPO
1 parent 4806b55 commit cc7d937

File tree

655 files changed

+8443
-2719
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

655 files changed

+8443
-2719
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "gitcoinco/core" }],
4+
"baseBranch": "main",
5+
"commit": false,
6+
"fixed": [["@gitcoin/**"]],
7+
"linked": [],
8+
"access": "public",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["@repo/**"]
11+
}

.changeset/pre.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"mode": "pre",
3+
"tag": "beta",
4+
"initialVersions": {
5+
"@repo/next-app": "0.0.0",
6+
"@gitcoin/config": "0.0.0",
7+
"@gitcoin/themes": "0.0.0",
8+
"@gitcoin/types": "0.0.0",
9+
"@gitcoin/ui": "0.0.0",
10+
"@gitcoin/utils": "0.0.0"
11+
},
12+
"changesets": []
13+
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# - @gitcoinco/grantsstack-engineering

.github/workflows/chromatic.yml

Lines changed: 0 additions & 80 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 28 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,50 @@
1-
name: release
1+
name: Release
22

33
on:
44
push:
55
branches:
66
- main
7-
workflow_dispatch:
8-
inputs:
9-
version:
10-
description: "Version to tag (e.g., 3.0.3)"
11-
required: true
12-
type: string
137

14-
permissions:
15-
contents: read
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
169

1710
jobs:
1811
release:
1912
name: Release
2013
runs-on: ubuntu-latest
2114
permissions:
22-
contents: write # to be able to publish a GitHub release
23-
issues: write # to be able to comment on released issues
24-
pull-requests: write # to be able to comment on released pull requests
25-
id-token: write # to enable use of OIDC for npm provenance
26-
15+
contents: write # to create release (changesets/action)
16+
issues: write # to post issue comments (changesets/action)
17+
pull-requests: write # to create pull request (changesets/action)
2718
steps:
28-
- uses: actions/checkout@v4
29-
with:
30-
fetch-depth: 0
31-
32-
- name: Setup Git
33-
if: github.event_name == 'workflow_dispatch'
34-
run: |
35-
git config --global user.name 'GitHub Action'
36-
git config --global user.email 'action@github.com'
37-
git tag -a v${{ inputs.version }} -m "v${{ inputs.version }}"
38-
git push origin v${{ inputs.version }}
19+
- name: Checkout Repo
20+
uses: actions/checkout@v4
3921

40-
- name: Install pnpm
41-
uses: pnpm/action-setup@v4
22+
- name: Setup pnpm 8
23+
uses: pnpm/action-setup@v3
4224
with:
43-
version: 9
44-
run_install: false
25+
version: 8
4526

46-
- uses: actions/setup-node@v4
27+
- name: Setup Node.js 20.x
28+
uses: actions/setup-node@v4
4729
with:
48-
node-version-file: ".nvmrc"
49-
cache: "pnpm"
30+
node-version: 20.x
5031

51-
- name: Install dependencies
52-
run: pnpm install --frozen-lockfile # Install dependencies with lockfile's versions to ensure consistency
32+
- name: Install Dependencies
33+
run: pnpm i
5334

54-
- name: Cache Build
55-
id: cache-build
56-
uses: actions/cache@v4
35+
- name: Create Release Pull Request or Publish to npm
36+
id: changesets
37+
uses: changesets/action@v1
5738
with:
58-
path: dist
59-
key: ${{ runner.os }}-build-${{ hashFiles('**/*.ts', '**/*.tsx', '**/*.mdx') }} # Cache key based on OS and file hashes
60-
restore-keys: |
61-
${{ runner.os }}-build-
62-
63-
- name: Build
64-
if: steps.cache-build.outputs.cache-hit != 'true'
65-
run: pnpm build
66-
67-
- name: Semantic Release
68-
run: pnpx semantic-release
39+
publish: pnpm release
40+
version: pnpm version-packages
41+
commit: "ci: new release"
42+
title: "ci: new release candidate"
6943
env:
70-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7145
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
47+
# - name: Send a Slack notification if a publish happens
48+
# if: steps.changesets.outputs.published == 'true'
49+
# # You can do something when a publish happens.
50+
# run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!"

.github/workflows/storybook-tests-on-push.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.gitignore

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
9-
1+
.DS_Store
102
node_modules
3+
.turbo
4+
*.log
5+
.next
116
dist
127
dist-ssr
138
*.local
14-
15-
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
18-
.idea
19-
.DS_Store
20-
*.suo
21-
*.ntvs*
22-
*.njsproj
23-
*.sln
24-
*.sw?
25-
269
.env
27-
storybook-static
28-
mockServiceWorker.js
10+
.cache
11+
server/dist
12+
public/dist
13+
.turbo
14+
storybook-static/

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# npx --no -- commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm exec lint-staged
1+
pnpm lint-staged

0 commit comments

Comments
 (0)