From bee03afec7ef5258d8104bf1b30cffc305cfea04 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Sat, 3 Jun 2023 02:50:44 +0900 Subject: [PATCH] ci(.github/workflow): use changeset publish --- .github/workflows/{ci-workflow.yml => ci.yml} | 2 +- .../{labeler-workflow.yml => labeler.yml} | 2 +- .../{release-workflow.yml => release.yml} | 5 +-- .gitignore | 3 ++ CNAME | 1 - graph/index.html | 37 ------------------- package.json | 4 +- packages/core/package.json | 1 - packages/emotion/package.json | 1 - 9 files changed, 10 insertions(+), 46 deletions(-) rename .github/workflows/{ci-workflow.yml => ci.yml} (97%) rename .github/workflows/{labeler-workflow.yml => labeler.yml} (89%) rename .github/workflows/{release-workflow.yml => release.yml} (92%) delete mode 100644 CNAME delete mode 100644 graph/index.html diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci.yml similarity index 97% rename from .github/workflows/ci-workflow.yml rename to .github/workflows/ci.yml index cac9ab0..fd19209 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: ci-workflow +name: CI on: pull_request: diff --git a/.github/workflows/labeler-workflow.yml b/.github/workflows/labeler.yml similarity index 89% rename from .github/workflows/labeler-workflow.yml rename to .github/workflows/labeler.yml index 6627974..62c3cfb 100644 --- a/.github/workflows/labeler-workflow.yml +++ b/.github/workflows/labeler.yml @@ -1,4 +1,4 @@ -name: 'Pull Request Labeler' +name: Labeler on: - pull_request_target diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release.yml similarity index 92% rename from .github/workflows/release-workflow.yml rename to .github/workflows/release.yml index fdcb6ea..655eaf1 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: release-workflow +name: Changesets PR or Publish on: push: @@ -7,7 +7,6 @@ on: jobs: build: - name: Release to NPM runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -34,7 +33,7 @@ jobs: title: 'chore(changesets): bump packages version' commit: 'chore: bump packages version' version: pnpm changeset:version - publish: pnpm npm:publish + publish: pnpm changeset:publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index 28d246e..f884934 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,6 @@ npm-debug.log* # for build dist esm + +# graph +graph/ diff --git a/CNAME b/CNAME deleted file mode 100644 index dd0faf3..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -graph.jsxcss.org \ No newline at end of file diff --git a/graph/index.html b/graph/index.html deleted file mode 100644 index ac6ab4e..0000000 --- a/graph/index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - Graph - - - - - - - \ No newline at end of file diff --git a/package.json b/package.json index c8f49b1..58079a5 100644 --- a/package.json +++ b/package.json @@ -23,12 +23,14 @@ "build": "turbo run build", "build:core": "turbo run build --filter=@jsxcss/core --filter=@jsxcss/emotion", "changeset": "changeset", + "changeset:publish": "changeset publish", "changeset:version": "changeset version && pnpm i --lockfile-only", "commit": "cz", "dev": "turbo run dev --parallel", "dev:ko": "turbo run dev:ko --scope='@jsxcss/docs'", "format": "prettier --write \"**/*.{ts,tsx,md}\"", - "graph": "turbo run build --graph=graph/index.html", + "graph": "mkdir graph && turbo run build --graph", + "graph:png": "turbo run build --graph=graph.svg", "lint": "turbo run lint", "lint:pack": "packlint sort -R", "npm:publish": "turbo run npm:publish", diff --git a/packages/core/package.json b/packages/core/package.json index bbf1371..599c849 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -29,7 +29,6 @@ "scripts": { "build": "rm -rf dist esm && tsc -p tsconfig.json --declaration --emitDeclarationOnly --declarationDir dist && rollup -c rollup.config.js", "lint": "eslint \"**/*.ts*\"", - "npm:publish": "pnpm publish", "prepack": "pnpm build", "test": "echo \"Error: no test specified\"", "type:check": "tsc --noEmit" diff --git a/packages/emotion/package.json b/packages/emotion/package.json index e03a043..a9f65d9 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -30,7 +30,6 @@ "scripts": { "build": "rm -rf dist esm && tsc -p tsconfig.json --declaration --emitDeclarationOnly --declarationDir dist && rollup -c rollup.config.js", "lint": "eslint \"**/*.ts*\"", - "npm:publish": "pnpm publish", "prepack": "pnpm build", "test": "echo \"Error: no test specified\"", "type:check": "tsc --noEmit"