Skip to content

Commit

Permalink
Merge pull request #488 from pixiv/mimo/fix-release-tag
Browse files Browse the repository at this point in the history
Add release scripts dist-tag option
  • Loading branch information
mimokmt authored Mar 14, 2024
2 parents f4cb1ee + f36f447 commit c0b9f0b
Show file tree
Hide file tree
Showing 15 changed files with 83 additions and 75 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ on:
version:
description: 'リリースしたいバージョン名'
required: true
release_tag:
description: 'Release tag'
required: true
default: 'latest'
type: choice
options:
- latest
- beta

jobs:
build:
Expand Down Expand Up @@ -46,7 +54,7 @@ jobs:
git push origin ${{ github.ref_name }}
- name: Build & Publish to npmjs
run: yarn release -y from-package
run: yarn release -y from-package --dist-tag ${{ github.event.inputs.release_tag }}
env:
NPM_CONFIG_PROVENANCE: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@
"packages": [
"packages/*"
],
"version": "3.10.0"
"version": "3.10.1-beta.1"
}
2 changes: 1 addition & 1 deletion packages/esbuild-plugin-styled-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/esbuild-plugin-styled-components",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"private": true,
"license": "Apache-2.0",
"main": "src/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/foundation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/foundation",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"license": "Apache-2.0",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
Expand Down Expand Up @@ -37,5 +37,5 @@
"url": "https://github.com/pixiv/charcoal.git",
"directory": "packages/foundation"
},
"gitHead": "8579b406b316285a35858512030d2143524ae154"
"gitHead": "e1ece2e43901ae667afdd5c178040607d939dcd5"
}
4 changes: 2 additions & 2 deletions packages/icon-files/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/icon-files",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"license": "Apache-2.0",
"type": "module",
"main": "./src/index.cjs",
Expand All @@ -22,5 +22,5 @@
"url": "https://github.com/pixiv/charcoal.git",
"directory": "packages/icon-files"
},
"gitHead": "8579b406b316285a35858512030d2143524ae154"
"gitHead": "e1ece2e43901ae667afdd5c178040607d939dcd5"
}
4 changes: 2 additions & 2 deletions packages/icons-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/icons-cli",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"license": "Apache-2.0",
"bin": "./dist/index.js",
"scripts": {
Expand Down Expand Up @@ -46,5 +46,5 @@
"url": "https://github.com/pixiv/charcoal.git",
"directory": "packages/icons-cli"
},
"gitHead": "8579b406b316285a35858512030d2143524ae154"
"gitHead": "e1ece2e43901ae667afdd5c178040607d939dcd5"
}
6 changes: 3 additions & 3 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/icons",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"license": "Apache-2.0",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
Expand Down Expand Up @@ -32,7 +32,7 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@charcoal-ui/icon-files": "^3.10.0",
"@charcoal-ui/icon-files": "^3.10.1-beta.1",
"dompurify": "^2.3.6",
"warning": "^4.0.3"
},
Expand All @@ -49,5 +49,5 @@
"url": "https://github.com/pixiv/charcoal.git",
"directory": "packages/icons"
},
"gitHead": "8579b406b316285a35858512030d2143524ae154"
"gitHead": "e1ece2e43901ae667afdd5c178040607d939dcd5"
}
16 changes: 8 additions & 8 deletions packages/react-sandbox/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/react-sandbox",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"license": "Apache-2.0",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
Expand All @@ -20,7 +20,7 @@
"clean": "rimraf dist .tsbuildinfo"
},
"devDependencies": {
"@charcoal-ui/esbuild-plugin-styled-components": "^3.10.0",
"@charcoal-ui/esbuild-plugin-styled-components": "^3.10.1-beta.1",
"@storybook/addon-actions": "^7.4.1",
"@storybook/addon-knobs": "^7.0.2",
"@storybook/addons": "^7.4.1",
Expand Down Expand Up @@ -50,11 +50,11 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@charcoal-ui/foundation": "^3.10.0",
"@charcoal-ui/react": "^3.10.0",
"@charcoal-ui/styled": "^3.10.0",
"@charcoal-ui/theme": "^3.10.0",
"@charcoal-ui/utils": "^3.10.0",
"@charcoal-ui/foundation": "^3.10.1-beta.1",
"@charcoal-ui/react": "^3.10.1-beta.1",
"@charcoal-ui/styled": "^3.10.1-beta.1",
"@charcoal-ui/theme": "^3.10.1-beta.1",
"@charcoal-ui/utils": "^3.10.1-beta.1",
"polished": "^4.1.4",
"react-spring": "^9.0.0",
"warning": "^4.0.3"
Expand All @@ -76,5 +76,5 @@
"url": "https://github.com/pixiv/charcoal.git",
"directory": "packages/react-sandbox"
},
"gitHead": "8579b406b316285a35858512030d2143524ae154"
"gitHead": "e1ece2e43901ae667afdd5c178040607d939dcd5"
}
14 changes: 7 additions & 7 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/react",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"license": "Apache-2.0",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
Expand All @@ -20,7 +20,7 @@
"clean": "rimraf dist .tsbuildinfo"
},
"devDependencies": {
"@charcoal-ui/esbuild-plugin-styled-components": "^3.10.0",
"@charcoal-ui/esbuild-plugin-styled-components": "^3.10.1-beta.1",
"@react-types/switch": "^3.1.2",
"@storybook/addon-actions": "^7.4.1",
"@storybook/addon-knobs": "^7.0.2",
Expand Down Expand Up @@ -54,10 +54,10 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@charcoal-ui/icons": "^3.10.0",
"@charcoal-ui/styled": "^3.10.0",
"@charcoal-ui/theme": "^3.10.0",
"@charcoal-ui/utils": "^3.10.0",
"@charcoal-ui/icons": "^3.10.1-beta.1",
"@charcoal-ui/styled": "^3.10.1-beta.1",
"@charcoal-ui/theme": "^3.10.1-beta.1",
"@charcoal-ui/utils": "^3.10.1-beta.1",
"@react-aria/button": "^3.9.1",
"@react-aria/checkbox": "^3.13.0",
"@react-aria/dialog": "^3.5.10",
Expand Down Expand Up @@ -90,5 +90,5 @@
"url": "https://github.com/pixiv/charcoal.git",
"directory": "packages/react"
},
"gitHead": "8579b406b316285a35858512030d2143524ae154"
"gitHead": "e1ece2e43901ae667afdd5c178040607d939dcd5"
}
10 changes: 5 additions & 5 deletions packages/styled/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/styled",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"license": "Apache-2.0",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs.js",
Expand Down Expand Up @@ -34,9 +34,9 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@charcoal-ui/foundation": "^3.10.0",
"@charcoal-ui/theme": "^3.10.0",
"@charcoal-ui/utils": "^3.10.0",
"@charcoal-ui/foundation": "^3.10.1-beta.1",
"@charcoal-ui/theme": "^3.10.1-beta.1",
"@charcoal-ui/utils": "^3.10.1-beta.1",
"warning": "^4.0.3"
},
"peerDependencies": {
Expand All @@ -55,5 +55,5 @@
"url": "https://github.com/pixiv/charcoal.git",
"directory": "packages/styled"
},
"gitHead": "8579b406b316285a35858512030d2143524ae154"
"gitHead": "e1ece2e43901ae667afdd5c178040607d939dcd5"
}
10 changes: 5 additions & 5 deletions packages/tailwind-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/tailwind-config",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"license": "Apache-2.0",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
Expand Down Expand Up @@ -29,9 +29,9 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@charcoal-ui/foundation": "^3.10.0",
"@charcoal-ui/theme": "^3.10.0",
"@charcoal-ui/utils": "^3.10.0"
"@charcoal-ui/foundation": "^3.10.1-beta.1",
"@charcoal-ui/theme": "^3.10.1-beta.1",
"@charcoal-ui/utils": "^3.10.1-beta.1"
},
"peerDependencies": {
"csstype": ">=3.0.0",
Expand All @@ -50,5 +50,5 @@
"url": "https://github.com/pixiv/charcoal.git",
"directory": "packages/tailwind-config"
},
"gitHead": "8579b406b316285a35858512030d2143524ae154"
"gitHead": "e1ece2e43901ae667afdd5c178040607d939dcd5"
}
4 changes: 2 additions & 2 deletions packages/tailwind-diff/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/tailwind-diff",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"bin": "bin/tailwind-diff.js",
"scripts": {
"build": "tsc",
Expand All @@ -25,5 +25,5 @@
"url": "https://github.com/pixiv/charcoal.git",
"directory": "packages/tailwind-diff"
},
"gitHead": "8579b406b316285a35858512030d2143524ae154"
"gitHead": "e1ece2e43901ae667afdd5c178040607d939dcd5"
}
8 changes: 4 additions & 4 deletions packages/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/theme",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"license": "Apache-2.0",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
Expand Down Expand Up @@ -29,8 +29,8 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@charcoal-ui/foundation": "^3.10.0",
"@charcoal-ui/utils": "^3.10.0",
"@charcoal-ui/foundation": "^3.10.1-beta.1",
"@charcoal-ui/utils": "^3.10.1-beta.1",
"polished": "^4.1.4"
},
"files": [
Expand All @@ -46,5 +46,5 @@
"url": "https://github.com/pixiv/charcoal.git",
"directory": "packages/theme"
},
"gitHead": "8579b406b316285a35858512030d2143524ae154"
"gitHead": "e1ece2e43901ae667afdd5c178040607d939dcd5"
}
6 changes: 3 additions & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charcoal-ui/utils",
"version": "3.10.0",
"version": "3.10.1-beta.1",
"license": "Apache-2.0",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
Expand All @@ -24,7 +24,7 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@charcoal-ui/foundation": "^3.10.0",
"@charcoal-ui/foundation": "^3.10.1-beta.1",
"polished": "^4.1.4"
},
"files": [
Expand All @@ -39,5 +39,5 @@
"url": "https://github.com/pixiv/charcoal.git",
"directory": "packages/utils"
},
"gitHead": "8579b406b316285a35858512030d2143524ae154"
"gitHead": "e1ece2e43901ae667afdd5c178040607d939dcd5"
}
Loading

0 comments on commit c0b9f0b

Please sign in to comment.