Merge branch 'next'
This commit is contained in:
8
.changeset/README.md
Normal file
8
.changeset/README.md
Normal file
@@ -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
.changeset/config.json
Normal file
11
.changeset/config.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
|
||||
"changelog": ["@changesets/changelog-github", { "repo": "xyflow/xyflow" }],
|
||||
"commit": false,
|
||||
"fixed": [],
|
||||
"linked": [],
|
||||
"access": "restricted",
|
||||
"baseBranch": "main",
|
||||
"updateInternalDependencies": "patch",
|
||||
"ignore": ["astro", "react-examples", "svelte-examples", "astro-examples", "playwright"]
|
||||
}
|
||||
19
.github/actions/ci-checks/action.yml
vendored
Normal file
19
.github/actions/ci-checks/action.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: 'CI checks'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
shell: bash
|
||||
- name: Typecheck
|
||||
run: pnpm typecheck
|
||||
shell: bash
|
||||
- name: Install Playwright browsers
|
||||
run: npx playwright install --with-deps
|
||||
- name: Test React Flow
|
||||
run: pnpm test:react
|
||||
shell: bash
|
||||
# - name: Test Svelte Flow
|
||||
# run: pnpm test:svelte
|
||||
# shell: bash
|
||||
15
.github/actions/ci-setup/action.yml
vendored
Normal file
15
.github/actions/ci-setup/action.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: 'CI setup'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
- name: Setup node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: 'pnpm'
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
shell: bash
|
||||
29
.github/workflows/release.yml
vendored
Normal file
29
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/ci-setup
|
||||
- uses: ./.github/actions/ci-checks
|
||||
|
||||
- name: Create release PR or publish to npm
|
||||
id: changesets
|
||||
uses: xyflow/changeset-action@v1
|
||||
with:
|
||||
publish: pnpm release
|
||||
title: Release packages
|
||||
commit: 'chore(packages): bump'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -151,6 +151,15 @@ npm install @xyflow/svelte
|
||||
```
|
||||
</details>
|
||||
|
||||
## Releases
|
||||
|
||||
For releasing packages we are using [changesets](https://github.com/changesets/changesets) in combination with the [changeset Github action](https://github.com/changesets/action). The rough idea is:
|
||||
|
||||
1. create PRs for new features, updates and fixes (with a changeset if relevant for changelog)
|
||||
2. merge into main
|
||||
3. changset creates a PR that bumps all packages based on the changesets
|
||||
4. merge changeset PR if you want to release to Github and npm
|
||||
|
||||
## The xyflow team
|
||||
|
||||
React Flow and Svelte Flow are maintained by the team behind [xyflow](https://xyflow.com). If you need help or want to talk to us about a collaboration, reach out through our [contact form](https://xyflow.com/contact) or by joining our [Discord Server](https://discord.gg/Bqt6xrs).
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "astro",
|
||||
"name": "astro-examples",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"version": "0.0.1",
|
||||
|
||||
Reference in New Issue
Block a user