Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: release-please & pkg-pr-new #38

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

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

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: CI

on: [push, pull_request]

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

- uses: pnpm/action-setup@v4

- run: pnpm i

- run: pnpm run lint

- run: pnpm run type:check

- run: pnpm run test

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- run: pnpm i

- run: pnpm run lint

- run: pnpm run type:check

- run: pnpm run test

publish:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- name: NPM registry authentication
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: pnpm i

- run: pnpm build:packages

- run: pnpm publish:packages

publish-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- run: pnpm i

- run: pnpm build:packages

- run: pnpm publish:packages:commit
24 changes: 0 additions & 24 deletions .github/workflows/code-quality.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/release-next.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/release-stable.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
!.gitignore
!.npmrc
!.*.example
!.release-please-manifest.json
!.vscode/
!.changeset/
!.github/

# Common generated folders
Expand Down
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"scripts": {
"build": "pnpm run -r build",
"build:packages": "pnpm --filter=\"./packages/*\" run -r build",
"build:packages": "pnpm --filter='./packages/*' run -r build",
"preview": "pnpm run --parallel preview",
"type:check": "pnpm run -r type:check && tsc -b",
"test": "vitest run",
Expand All @@ -22,14 +22,12 @@
"sherif:fix": "pnpm run sherif --fix",
"knip": "pnpm dlx knip --production",
"knip:fix": "pnpm run knip --fix --allow-remove-files",
"changeset:version": "changeset version",
"changeset:publish": "pnpm run build:packages && pnpm changeset publish",
"publish:packages": "pnpm --filter='./packages/*' publish -r",
"publish:packages:commit": "pnpm dlx pkg-pr-new publish './packages/*' --pnpm --template './playgrounds/*'",
"prepare": "simple-git-hooks"
},
"devDependencies": {
"@antfu/eslint-config": "^3.9.2",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@eslint-react/eslint-plugin": "^1.16.2",
"@testing-library/jest-dom": "^6.6.2",
"@testing-library/react": "^16.0.1",
Expand Down
Loading