Skip to content

Commit

Permalink
Add changeset (#1338)
Browse files Browse the repository at this point in the history
* add changeset

* f
  • Loading branch information
samijaber authored Jan 26, 2024
1 parent 49b6597 commit 300bb64
Show file tree
Hide file tree
Showing 9 changed files with 882 additions and 27 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": [["@builder.io/mitosis", "@builder.io/mitosis-cli"]],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["@builder.io/mitosis-fiddle"]
}
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: 'yarn'

- name: Install dependencies
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: 'yarn'

- name: Install dependencies
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: 'yarn'

- name: Install dependencies
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Publish

on:
push:
branches:
- main
# We allow manually dispatching workflow when needed. Most often, this will not be needed.
workflow_dispatch:

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

jobs:
publish-sdks:
name: Publish package
runs-on: ubuntu-latest

steps:
- name: Setup
uses: actions/checkout@v3
with:
# need this custom token to run CI checks on the created PR
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
cache: 'yarn'

- name: Install dependencies
run: yarn --immutable

- name: Build
run: yarn ci:build

- name: Create Release PR & Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn changeset publish
title: "📦 Publish Packages"
commit: "📦 Publish Packages"
env:
# need this custom token to run CI checks on the created PR
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}

# probably don't need both of those, but it works!
NPM_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/save-build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: 'yarn'

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v20
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
"examples/**/*"
],
"private": true,
"version": "0.0.0",
"engines": {
"node": ">=16",
"npm": "99999999.9.9"
"node": ">=16"
},
"scripts": {
"g:changeset": "yarn changeset",
"build:core": "nx build @builder.io/mitosis",
"build:fiddle": "nx build @builder.io/mitosis-fiddle",
"build:eslint-plugin": "nx build @builder.io/eslint-plugin-mitosis",
Expand Down Expand Up @@ -43,6 +42,7 @@
},
"devDependencies": {
"@babel/preset-env": "^7.6.0",
"@changesets/cli": "^2.27.1",
"@nrwl/nx-cloud": "15.0.2",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
Expand Down
4 changes: 0 additions & 4 deletions packages/fiddle/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"name": "@builder.io/mitosis-fiddle",
"version": "0.1.0",
"private": true,
"engines": {
"npm": "99999999.9.9"
},
"dependencies": {
"@builder.io/eslint-plugin-mitosis": "workspace:*",
"@builder.io/mitosis": "workspace:*",
Expand Down
Loading

1 comment on commit 300bb64

@vercel
Copy link

@vercel vercel bot commented on 300bb64 Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.