Skip to content

Commit

Permalink
Merge pull request #55 from wobsoriano/changesets
Browse files Browse the repository at this point in the history
Add changesets
  • Loading branch information
wobsoriano authored Jun 30, 2024
2 parents 3824e4a + 2953e1d commit 043805c
Show file tree
Hide file tree
Showing 10 changed files with 727 additions and 79 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/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
35 changes: 27 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,40 @@ name: Release

on:
push:
tags:
- 'v*'
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
permissions:
contents: write # to create release (changesets/action)
pull-requests: write # to create pull request (changesets/action)
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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

- uses: actions/setup-node@v3
- uses: pnpm/[email protected]
with:
version: 8.6.3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
cache: pnpm

- run: npx changelogithub
- run: pnpm install

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
},
"devDependencies": {
"@antfu/eslint-config": "^2.14.0",
"@changesets/cli": "^2.27.6",
"@types/node": "^20.12.7",
"bumpp": "^9.4.0",
"eslint": "^9.0.0",
Expand Down
2 changes: 1 addition & 1 deletion playground/src/Editor.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script setup lang="ts">
import {
LexicalAutoFocusPlugin,
LexicalCheckListPlugin,
LexicalClickableLinkPlugin,
LexicalHashtagPlugin,
LexicalHistoryPlugin,
LexicalLinkPlugin,
LexicalListPlugin,
LexicalRichTextPlugin,
LexicalCheckListPlugin,
} from 'lexical-vue'
import EmojisPlugin from './plugins/EmojisPlugin.vue'
Expand Down
2 changes: 1 addition & 1 deletion playground/src/plugins/TwitterPlugin/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useLexicalComposer } from 'lexical-vue'
import { $insertNodeToNearestRoot } from '@lexical/utils'
import { COMMAND_PRIORITY_EDITOR, createCommand } from 'lexical'
import { COMMAND_PRIORITY_EDITOR } from 'lexical'
import { onMounted, onUnmounted } from 'vue'
import { INSERT_TWEET_COMMAND } from './shared'
Expand Down
2 changes: 1 addition & 1 deletion playground/src/ui/DropDownItem.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { inject, onMounted, ref, useAttrs } from 'vue'
import { inject, onMounted, ref } from 'vue'
defineProps<{
title?: string
Expand Down
2 changes: 1 addition & 1 deletion playground/src/ui/DropDownItems.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { computed, onMounted, provide, ref, watchEffect } from 'vue'
import { onMounted, provide, ref } from 'vue'
const emit = defineEmits(['close'])
const items = ref<HTMLButtonElement[]>()
Expand Down
Loading

0 comments on commit 043805c

Please sign in to comment.