Skip to content

Commit 915550f

Browse files
authored
Merge pull request #31 from gluestack/feat/changeset
fix: testing release flow
2 parents a83813e + d06c6f2 commit 915550f

File tree

8 files changed

+11617
-1770
lines changed

8 files changed

+11617
-1770
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["next"]
11+
}

.github/workflows/main-create-next-app-with-gluestack-ui.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Create Next App with Gluestack UI (isProduction | @latest)
1+
name: Create Next App with Gluestack UI (Production | @latest)
22

33
on:
44
schedule:
5-
- cron: "0 */4 * * *"
5+
- cron: '0 */4 * * *'
66

77
jobs:
88
test:
@@ -14,7 +14,7 @@ jobs:
1414
- name: Use Node.js v18.x
1515
uses: actions/setup-node@v3
1616
with:
17-
node-version: "18.x"
17+
node-version: '18.x'
1818
- name: Install dependencies (prevent updates to lock file)
1919
working-directory: ${{ env.working-directory }}
2020
run: yarn
@@ -38,4 +38,4 @@ jobs:
3838
with:
3939
channel_id: C05HGN9LFV0
4040
status: FAILED by @${{ github.actor}}, Notify <@U047HGWBG>
41-
color: danger
41+
color: danger

.github/workflows/release-create-next-app-with-gluestack-ui.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,30 @@ concurrency: ${{ github.workflow }}-${{ github.ref || github.run_id }}
99

1010
jobs:
1111
release:
12-
# if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged
1312
name: Publish version
1413
runs-on: ubuntu-latest
1514
steps:
1615
- name: Checkout Repo
1716
uses: actions/checkout@v3
18-
1917
- name: Set up Node.js v18.x
2018
uses: actions/setup-node@v3
2119
with:
22-
node-version: "18.x"
23-
24-
- name: Install dependencies
25-
run: |
26-
yarn
27-
yarn build
28-
29-
# - name: Create Release Pull Request or Publish to npm
30-
# id: changesets
31-
# uses: changesets/action@v1
32-
# with:
33-
# publish: yarn release
34-
# env:
35-
# GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
36-
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37-
20+
node-version: '18.x'
21+
- name: Publish to npm
22+
id: changesets
23+
uses: changesets/action@v1
24+
with:
25+
publish: yarn release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3829
- name: Post to a Slack channel
3930
id: slack
4031
if: steps.changesets.outputs.published == 'true'
4132
uses: slackapi/slack-github-action@v1.23.0
4233
with:
4334
channel-id: C05H3MUMPN3
44-
# slack-message: "A new package was published in ${{ github.event.repository.name }}!\n${{ toJSON(steps.changesets.outputs.publishedPackages) }}"
45-
slack-message: "A new package was published in ${{ github.event.repository.name }}!"
35+
slack-message: "A new package was published in ${{ github.event.repository.name }}!\n${{ toJSON(steps.changesets.outputs.publishedPackages) }}"
4636
color: good
4737
env:
48-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
38+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"create-next-app-with-gluestack-ui": "npm run dev --workspace create-next-app-with-gluestack-ui",
1010
"watch:create-next-app-with-gluestack-ui": "npm run watch --workspace create-next-app-with-gluestack-ui",
1111
"watch:create-expo-app-with-gluestack-ui": "npm run watch --workspace create-expo-app-with-gluestack-ui",
12-
"watch:gluestack-ui": "npm run watch --workspace gluestack-ui"
12+
"watch:gluestack-ui": "npm run watch --workspace gluestack-ui",
13+
"release": "changeset publish"
1314
},
1415
"devDependencies": {
1516
"@turbo/gen": "^1.9.7",
@@ -20,8 +21,10 @@
2021
"name": "ui-cli-monorepo",
2122
"packageManager": "npm@9.6.5",
2223
"workspaces": [
23-
"apps/*"
24+
"apps/*",
25+
"packages/*"
2426
],
2527
"dependencies": {
28+
"@changesets/cli": "^2.26.2"
2629
}
2730
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# create-next-app-with-gluestack-ui
2+
3+
## 0.1.17-alpha.1
4+
5+
### Alpha Changes
6+
7+
- This is a patch test

packages/create-next-app-with-gluestack-ui/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"cli"
1111
],
1212
"description": "A CLI tool for easily adding components from gluestack-ui to your projects.",
13-
"version": "0.1.16",
13+
"version": "0.1.17-alpha.1",
1414
"license": "MIT",
1515
"main": "dist/index.js",
1616
"files": [
@@ -27,7 +27,8 @@
2727
"prepare": "tsc",
2828
"test": "jest",
2929
"test:production": "jest --isProduction=true",
30-
"dev": "node dist/index.js"
30+
"dev": "node dist/index.js",
31+
"release": "changeset publish"
3132
},
3233
"husky": {
3334
"hooks": {

0 commit comments

Comments
 (0)