Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 77a989f

Browse filesBrowse files
committed
chore: introduce changesets
1 parent 1b63454 commit 77a989f
Copy full SHA for 77a989f

File tree

Expand file treeCollapse file tree

4 files changed

+63
-2
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+63
-2
lines changed

‎.changeset/README.md

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

‎.changeset/config.json

Copy file name to clipboard
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config/schema.json",
3+
"changelog": [
4+
"@svitejs/changesets-changelog-github-compact",
5+
{
6+
"repo": "vuejs/eslint-plugin-vue"
7+
}
8+
],
9+
"commit": false,
10+
"linked": [],
11+
"access": "public",
12+
"baseBranch": "master",
13+
"bumpVersionsWithWorkspaceProtocolOnly": true,
14+
"ignore": []
15+
}

‎.github/workflows/Release.yml

Copy file name to clipboard
+33Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
# prevents this action from running on forks
11+
if: github.repository == 'vuejs/eslint-plugin-vue'
12+
permissions:
13+
contents: write # to create release (changesets/action)
14+
pull-requests: write # to create pull request (changesets/action)
15+
name: Release
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@v4
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
- name: Install Dependencies
23+
run: npm install -f
24+
25+
- name: Create Release Pull Request or Publish to npm
26+
id: changesets
27+
uses: changesets/action@v1
28+
with:
29+
version: npm run changeset:version
30+
publish: npm run changeset:publish
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

‎package.json

Copy file name to clipboardExpand all lines: package.json
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@
1818
"lint:fix": "eslint . --fix && markdownlint \"**/*.md\" --fix",
1919
"tsc": "tsc",
2020
"preversion": "npm test && git add .",
21-
"version": "env-cmd -e version npm run update && npm run lint -- --fix && git add .",
21+
"version": "npm run generate:version && git add .",
2222
"update": "node ./tools/update.js",
2323
"update-resources": "node ./tools/update-resources.js",
2424
"docs:watch": "vitepress dev docs",
2525
"predocs:build": "npm run update",
26-
"docs:build": "vitepress build docs"
26+
"docs:build": "vitepress build docs",
27+
"generate:version": "env-cmd -e version npm run update && npm run lint -- --fix",
28+
"changeset:version": "changeset version && npm run generate:version && git add --all",
29+
"changeset:publish": "changeset publish"
2730
},
2831
"files": [
2932
"lib"
@@ -66,8 +69,10 @@
6669
"xml-name-validator": "^4.0.0"
6770
},
6871
"devDependencies": {
72+
"@changesets/cli": "^2.29.2",
6973
"@ota-meshi/site-kit-eslint-editor-vue": "^0.2.4",
7074
"@stylistic/eslint-plugin": "^2.12.1",
75+
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
7176
"@types/eslint": "^8.56.2",
7277
"@types/natural-compare": "^1.4.3",
7378
"@types/node": "^14.18.63",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.