Skip to content

Commit

Permalink
Enable Changesets
Browse files Browse the repository at this point in the history
Changesets replaces lerna-lite. Releases are made using the `release`
workflow. The changeset configuration is based on Astro and MDX
analyzer.

Each package now has a `prepack` script. This is run before creating an
npm package, including by Changesets.

Also npm provenance was enabled.
  • Loading branch information
remcohaszing committed Dec 19, 2023
1 parent ac8281d commit 9ad77aa
Show file tree
Hide file tree
Showing 25 changed files with 1,159 additions and 2,252 deletions.
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)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config/schema.json",
"changelog": [ "@changesets/changelog-github", { "repo": "volar/services" } ],
"commit": false,
"fixed": [ ],
"linked": [ ],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": [ ]
}
31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: release

on:
push:
branches:
- master

jobs:
release:
name: release
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
pull-requests: write
issues: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
- run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
- uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
provenance=true
8 changes: 0 additions & 8 deletions lerna.json

This file was deleted.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
"packageManager": "[email protected]",
"scripts": {
"build": "tsc -b",
"watch": "tsc -b -w",
"prerelease": "npm run build",
"release": "lerna publish --exact --force-publish --yes --sync-workspace-lock --no-push --dist-tag volar-2.0",
"release:next": "npm run release -- --dist-tag next"
"watch": "tsc -b -w"
},
"devDependencies": {
"@lerna-lite/cli": "latest",
"@lerna-lite/publish": "latest",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@volar/language-service": "next",
"typescript": "latest",
"vscode-languageserver-protocol": "^3.17.5"
Expand Down
3 changes: 3 additions & 0 deletions packages/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/emmet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
],
"types": "out/index.d.ts",
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/pretty-ts-errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/prettyhtml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/pug-beautify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/pug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/sass-formatter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/tslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/typescript-twoslash-queries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/vetur/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down
3 changes: 3 additions & 0 deletions packages/yaml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"volar-service"
],
"license": "MIT",
"scripts": {
"prepack": "tsc -b"
},
"files": [
"**/*.js",
"**/*.d.ts"
Expand Down

0 comments on commit 9ad77aa

Please sign in to comment.