mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
Update changelog configuration and release scripts (#2095)
This commit is contained in:
@@ -4,8 +4,7 @@
|
|||||||
"commit": false,
|
"commit": false,
|
||||||
"fixed": [],
|
"fixed": [],
|
||||||
"linked": [],
|
"linked": [],
|
||||||
"access": "restricted",
|
"access": "public",
|
||||||
"baseBranch": "main",
|
"baseBranch": "main",
|
||||||
"updateInternalDependencies": "patch",
|
|
||||||
"ignore": []
|
"ignore": []
|
||||||
}
|
}
|
||||||
|
|||||||
5
.changeset/swift-crabs-care.md
Normal file
5
.changeset/swift-crabs-care.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@tabler/core": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Update changelog configuration and release scripts
|
||||||
24
.github/workflows/release.yml
vendored
24
.github/workflows/release.yml
vendored
@@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- dev
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -15,6 +16,10 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write # to create release
|
||||||
|
issues: write # to post issue comments
|
||||||
|
pull-requests: write # to create pull request
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -32,18 +37,17 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Creating .npmrc
|
- name: Build
|
||||||
run: |
|
run: pnpm run build
|
||||||
cat << EOF > "$HOME/.npmrc"
|
|
||||||
//registry.npmjs.org/:_authToken=$NPM_TOKEN
|
|
||||||
EOF
|
|
||||||
env:
|
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
|
||||||
- name: Create Release Pull Request
|
- name: Create release Pull Request or publish to NPM
|
||||||
uses: changesets/action@v1
|
uses: changesets/action@v1
|
||||||
with:
|
with:
|
||||||
publish: pnpm release
|
version: pnpm run version
|
||||||
|
publish: pnpm run publish
|
||||||
|
commit: "chore: update versions"
|
||||||
|
title: "chore: update versions"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
21
package.json
21
package.json
@@ -11,7 +11,8 @@
|
|||||||
"preview": "gulp build --preview",
|
"preview": "gulp build --preview",
|
||||||
"svg-optimize": "svgo -f svg/brand --pretty",
|
"svg-optimize": "svgo -f svg/brand --pretty",
|
||||||
"unused-files": "node .build/unused-files.js",
|
"unused-files": "node .build/unused-files.js",
|
||||||
"release": "release-it",
|
"version": "changeset version",
|
||||||
|
"publish": "changeset publish",
|
||||||
"svg-icons": "node .build/import-icons.js",
|
"svg-icons": "node .build/import-icons.js",
|
||||||
"bundlewatch": "bundlewatch",
|
"bundlewatch": "bundlewatch",
|
||||||
"storybook": "start-storybook -p 6006",
|
"storybook": "start-storybook -p 6006",
|
||||||
@@ -135,6 +136,7 @@
|
|||||||
"@11ty/eleventy": "^3.0.0",
|
"@11ty/eleventy": "^3.0.0",
|
||||||
"@babel/core": "^7.26.7",
|
"@babel/core": "^7.26.7",
|
||||||
"@babel/preset-env": "^7.26.7",
|
"@babel/preset-env": "^7.26.7",
|
||||||
|
"@changesets/changelog-github": "^0.5.0",
|
||||||
"@changesets/cli": "^2.27.12",
|
"@changesets/cli": "^2.27.12",
|
||||||
"@rollup/plugin-commonjs": "^24.1.0",
|
"@rollup/plugin-commonjs": "^24.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^15.3.1",
|
"@rollup/plugin-node-resolve": "^15.3.1",
|
||||||
@@ -175,7 +177,6 @@
|
|||||||
"plyr": "^3.7.8",
|
"plyr": "^3.7.8",
|
||||||
"postcss": "^8.5.1",
|
"postcss": "^8.5.1",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"release-it": "^15.11.0",
|
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
"rollup": "2.79.2",
|
"rollup": "2.79.2",
|
||||||
"rollup-plugin-babel": "^4.4.0",
|
"rollup-plugin-babel": "^4.4.0",
|
||||||
@@ -267,21 +268,7 @@
|
|||||||
"optional": true
|
"optional": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"release-it": {
|
|
||||||
"hooks": {
|
|
||||||
"after:bump": "gulp build --latest-version ${latestVersion} --new-version ${version} && gulp build-demo",
|
|
||||||
"after:release": "echo Successfully released ${name} v${latestVersion} to ${repo.repository}."
|
|
||||||
},
|
|
||||||
"git": {
|
|
||||||
"requireCleanWorkingDir": false,
|
|
||||||
"addUntrackedFiles": true,
|
|
||||||
"tagName": "v${version}"
|
|
||||||
},
|
|
||||||
"github": {
|
|
||||||
"release": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"directories": {
|
"directories": {
|
||||||
"doc": "docs"
|
"doc": "docs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
2224
pnpm-lock.yaml
generated
2224
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user