Skip to content

Commit e39d8f2

Browse files
authored
use changeset (#106)
1 parent f0df195 commit e39d8f2

File tree

5 files changed

+64
-28
lines changed

5 files changed

+64
-28
lines changed

.changeset/README.md

Lines 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

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

.github/workflows/NpmPublish.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/Release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
issues: write
11+
pull-requests: write
12+
13+
jobs:
14+
release:
15+
name: Release
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@v4
20+
with:
21+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
22+
fetch-depth: 0
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
- name: Install Dependencies
26+
run: npm install -f
27+
- name: Create Release Pull Request or Publish to npm
28+
id: changesets
29+
uses: changesets/action@v1
30+
with:
31+
commit: "chore: release eslint-config-vue-preset"
32+
title: "chore: release eslint-config-vue-preset"
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
"eslint-plugin-vue": ">=7.13.0"
3838
},
3939
"devDependencies": {
40+
"@changesets/cli": "^2.26.2",
4041
"@ota-meshi/eslint-plugin": "^0.10.0",
42+
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
4143
"@vue/eslint-config-standard": "^6.0.0",
4244
"eslint": "^8.11.0",
4345
"eslint-config-airbnb": "^19.0.4",
@@ -63,5 +65,8 @@
6365
"mocha": "^9.0.0",
6466
"nyc": "^15.0.0",
6567
"prettier": "^2.4.1"
68+
},
69+
"publishConfig": {
70+
"access": "public"
6671
}
6772
}

0 commit comments

Comments
 (0)