Skip to content

chore: use changesets #408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/config/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "intlify/eslint-plugin-vue-i18n"
}
],
"commit": false,
"linked": [],
"baseBranch": "main",
"updateInternalDependencies": "patch",
"bumpVersionsWithWorkspaceProtocolOnly": true,
"ignore": []
}
8 changes: 8 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"@intlify/eslint-plugin-vue-i18n": "3.0.0-beta.1"
},
"changesets": []
}
5 changes: 5 additions & 0 deletions .env-cmdrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version-ci": {
"IN_VERSION_CI_SCRIPT": "true"
}
}
41 changes: 41 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm run build

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# this expects you to have a npm script called version that runs some logic and then calls `changeset version`.
version: pnpm run version:ci
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm run release
commit: 'chore: release `@intlify/eslint-plugin-vue-i18n`'
title: 'chore: release `@intlify/eslint-plugin-vue-i18n`'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
],
"main": "dist/lib/index.js",
"scripts": {
"build": "tsc",
"build:prod": "tsc --project ./tsconfig.build.json",
"build": "tsc --project ./tsconfig.build.json",
"clean": "rimraf .nyc_output coverage dist docs/.vitepress/dist",
"coverage": "nyc report --reporter lcov && opener coverage/lcov-report/index.html",
"docs": "vitepress dev docs",
Expand All @@ -47,13 +46,15 @@
"lint-fix": "eslint . --ext js,ts,vue,md --ignore-pattern \"/tests/fixtures\" --fix",
"lint:docs": "prettier docs --check",
"format": "prettier . --write",
"release:prepare": "node shipjs-cli.cjs prepare",
"release:trigger": "node shipjs-cli.cjs trigger",
"prerelease": "pnpm run test && pnpm run build",
"release": "changeset publish",
"test": "mocha --require ts-node/register/transpile-only \"./tests/**/*.ts\"",
"test:debug": "mocha --require ts-node/register/transpile-only \"./tests/**/*.ts\"",
"test:coverage": "nyc mocha --require ts-node/register/transpile-only \"./tests/**/*.ts\" --timeout 60000",
"test:integrations": "mocha ./tests-integrations/*.cjs --timeout 60000",
"new": "ts-node ./scripts/new-rule.ts"
"new": "ts-node ./scripts/new-rule.ts",
"version:ci": "env-cmd -e version-ci pnpm run generate && changeset version",
"changeset": "changeset"
},
"dependencies": {
"@eslint/eslintrc": "^2.1.0",
Expand All @@ -73,6 +74,8 @@
"yaml-eslint-parser": "^1.2.2"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.6",
"@changesets/cli": "^2.24.2",
"@types/debug": "^4.1.8",
"@types/eslint": "^8.44.0",
"@types/eslint-scope": "^3.7.4",
Expand All @@ -87,7 +90,7 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"entities": "^4.5.0",
"esbuild-register": "^3.4.2",
"env-cmd": "^10.1.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-markdown": "^3.0.0",
Expand All @@ -105,7 +108,6 @@
"path-scurry": "^1.10.1",
"prettier": "^2.8.8",
"rimraf": "^5.0.1",
"shipjs": "^0.26.3",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"vitepress": "1.0.0-beta.5",
Expand All @@ -130,7 +132,6 @@
}
},
"publishConfig": {
"access": "public",
"tag": "next"
"access": "public"
}
}
Loading