Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzz committed Apr 28, 2023
1 parent faba7d0 commit 07da780
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
@@ -1,16 +1,15 @@
name: React UI Release
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
name: release
run-name: release 🚀
on:
push:
branches: ['next']
jobs:
Beta:
beta:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check out repository code
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
- name: Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
Expand Down
6 changes: 5 additions & 1 deletion lerna.json
Expand Up @@ -8,7 +8,11 @@
"createRelease": "github",
"conventionalCommits": true,
"message": "chore(release): publish",
"ignoreChanges": ["packages/react-ui-testing/TestPages/**"]
"ignoreChanges": ["packages/react-ui-testing/TestPages/**"],
"includeMergedTags": true
},
"publish": {
"registry": "http://localhost"
}
}
}
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -23,8 +23,7 @@
"scripts": {
"commit": "git-cz",
"release": "lerna version",
"release:beta": "yarn release prerelease --preid beta --no-push --no-git-tag-version",
"release:minor": "yarn release minor --no-push --no-git-tag-version",
"release:beta": "lerna version prerelease --preid beta --yes && lerna publish from-git --dist-tag next",
"prepare": "husky install",
"preinstall": "node scripts/update-package-registry",
"postinstall": "node scripts/update-package-registry back"
Expand Down
6 changes: 5 additions & 1 deletion packages/react-ui/package.json
Expand Up @@ -13,14 +13,18 @@
"bugs": {
"url": "https://github.com/skbkontur/retail-ui/issues"
},
"publishConfig": {
"directory": "build"
},
"scripts": {
"prebuild": "run-s clean build:types",
"build:types": "tsc -p ./prod.tsconfig.json --emitDeclarationOnly --diagnostics --outDir build",
"build:cjs": "cross-env BABEL_ENV=cjs node scripts/build",
"build:esm": "node scripts/build",
"build": "run-p build:esm build:cjs && node scripts/build/postbuild",
"clean": "git clean -fdxqe node_modules",
"prerelease": "node scripts/publish/prepublish && yarn build",
"prepublishOnly": "node -e 'console.log(\"PREPUBLISH\")' && yarn build",
"prerelease": "node scripts/publish/prepublish",
"release": "npm publish ./build",
"postrelease": "yarn deploy",
"predeploy": "rimraf .styleguide/deploy && yarn run styleguide:build",
Expand Down

0 comments on commit 07da780

Please sign in to comment.