@stzhu/eslint-config 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/bump-version.yml +62 -0
- package/package.json +12 -1
- package/renovate.json +4 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
name: Bump Package Version
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version_type:
|
|
7
|
+
description: 'Version bump type'
|
|
8
|
+
required: true
|
|
9
|
+
default: 'patch'
|
|
10
|
+
type: choice
|
|
11
|
+
options:
|
|
12
|
+
- patch
|
|
13
|
+
- minor
|
|
14
|
+
- major
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
bump-version:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
permissions:
|
|
20
|
+
contents: write
|
|
21
|
+
pull-requests: write
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
|
|
26
|
+
- uses: pnpm/action-setup@v4
|
|
27
|
+
|
|
28
|
+
- name: Setup Node.js
|
|
29
|
+
uses: actions/setup-node@v4
|
|
30
|
+
with:
|
|
31
|
+
node-version-file: package.json
|
|
32
|
+
cache: pnpm
|
|
33
|
+
registry-url: https://registry.npmjs.org
|
|
34
|
+
- name: Configure Git
|
|
35
|
+
run: |
|
|
36
|
+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
37
|
+
git config --local user.name "github-actions[bot]"
|
|
38
|
+
- name: Get current version
|
|
39
|
+
id: current_version
|
|
40
|
+
run: |
|
|
41
|
+
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
42
|
+
echo "current=$CURRENT_VERSION" >> $GITHUB_OUTPUT
|
|
43
|
+
- name: Bump version
|
|
44
|
+
id: bump_version
|
|
45
|
+
run: |
|
|
46
|
+
npm version ${{ github.event.inputs.version_type }} --no-git-tag-version
|
|
47
|
+
NEW_VERSION=$(node -p "require('./package.json').version")
|
|
48
|
+
echo "new=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
49
|
+
- name: Create branch
|
|
50
|
+
run: |
|
|
51
|
+
BRANCH_NAME="bump-version-${{ steps.bump_version.outputs.new }}"
|
|
52
|
+
git checkout -b $BRANCH_NAME
|
|
53
|
+
echo "branch=$BRANCH_NAME" >> $GITHUB_ENV
|
|
54
|
+
- name: Commit changes
|
|
55
|
+
run: |
|
|
56
|
+
git add package.json
|
|
57
|
+
git commit -m "chore(release): ${{ github.event.inputs.version_type }} version bump to ${{ steps.bump_version.outputs.new }}"
|
|
58
|
+
git push origin ${{ env.branch }}
|
|
59
|
+
- name: Create Pull Request
|
|
60
|
+
run: gh pr create --fill
|
|
61
|
+
env:
|
|
62
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stzhu/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Shared config for ESLint",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint"
|
|
@@ -64,6 +64,17 @@
|
|
|
64
64
|
"tailwindcss": "^4",
|
|
65
65
|
"typescript": "^5"
|
|
66
66
|
},
|
|
67
|
+
"peerDependenciesMeta": {
|
|
68
|
+
"postcss": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"tailwindcss": {
|
|
72
|
+
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"typescript": {
|
|
75
|
+
"optional": true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
67
78
|
"scripts": {
|
|
68
79
|
"format": "prettier -w .",
|
|
69
80
|
"lint": "prettier -c . && eslint .",
|
package/renovate.json
ADDED