Skip to content

Commit

Permalink
ci(.github/workflow): use changeset publish
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Jun 2, 2023
1 parent b5eb4ab commit bee03af
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 46 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci-workflow
name: CI

on:
pull_request:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Pull Request Labeler'
name: Labeler
on:
- pull_request_target

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release-workflow
name: Changesets PR or Publish

on:
push:
Expand All @@ -7,7 +7,6 @@ on:

jobs:
build:
name: Release to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -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 }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ npm-debug.log*
# for build
dist
esm

# graph
graph/
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

37 changes: 0 additions & 37 deletions graph/index.html

This file was deleted.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion packages/emotion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

2 comments on commit bee03af

@vercel
Copy link

@vercel vercel bot commented on bee03af Jun 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

emotion – ./websites/emotion

emotion-jsxcss.vercel.app
emotion-git-main-jsxcss.vercel.app
emotion.jsxcss.org

@vercel
Copy link

@vercel vercel bot commented on bee03af Jun 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./websites/docs

docs-jsxcss.vercel.app
docs-git-main-jsxcss.vercel.app
jsxcss.org
docs.jsxcss.org
www.jsxcss.org

Please sign in to comment.