From 264e53dc7c9b7a4e4d28a76a36beba3ba2a9cbc4 Mon Sep 17 00:00:00 2001 From: Justin D Mathew Date: Tue, 10 Sep 2024 12:56:42 -0700 Subject: [PATCH] Update release package workflow (#249) * add action setup script * testing workflow dispatch * use setup script * update build command * update build order * update build order * add version run script * Add run app step * Added changesets * update names * switch to patch update internal dependencies * chore: release package (#250) --- .changeset/config.json | 2 +- .github/actions/setup/action.yml | 19 +++++++++++++++++++ .github/workflows/release.yml | 14 +++++++++----- package.json | 3 ++- packages/animations/CHANGELOG.md | 10 ++++++++++ packages/animations/package.json | 6 +++--- packages/core/CHANGELOG.md | 9 +++++++++ packages/core/package.json | 4 ++-- packages/extras/CHANGELOG.md | 11 +++++++++++ packages/extras/package.json | 8 ++++---- packages/forms/CHANGELOG.md | 11 +++++++++++ packages/forms/package.json | 8 ++++---- packages/internal/CHANGELOG.md | 6 ++++++ packages/internal/package.json | 2 +- packages/lists/CHANGELOG.md | 10 ++++++++++ packages/lists/package.json | 6 +++--- packages/react-native/CHANGELOG.md | 10 ++++++++++ packages/react-native/package.json | 6 +++--- 18 files changed, 118 insertions(+), 27 deletions(-) create mode 100644 .github/actions/setup/action.yml diff --git a/.changeset/config.json b/.changeset/config.json index 8e41aeae..d254ecbe 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -11,6 +11,6 @@ "linked": [], "access": "public", "baseBranch": "main", - "updateInternalDependencies": "minor", + "updateInternalDependencies": "patch", "ignore": [] } diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml new file mode 100644 index 00000000..8999e6fd --- /dev/null +++ b/.github/actions/setup/action.yml @@ -0,0 +1,19 @@ +name: Setup +description: Setup Build Step +inputs: + node-version: + required: true + default: '18.x' + +runs: + using: "composite" + steps: + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ inputs.node-version }} + cache: yarn + + - name: Install dependencies + shell: bash + run: yarn install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 664e6005..b7935bc3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,9 @@ -name: Release +name: AMA Release Workflow on: push: branches: - main + workflow_dispatch: jobs: release: name: Release @@ -30,17 +31,20 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - - name: Install Dependencies - run: yarn install && yarn run example:bare + - name: Install dependencies + uses: ./.github/actions/setup - - name: Build library + - name: Run example bare app + run: yarn run example:bare + + - name: Build packages run: yarn run build - name: PR or Publish id: changesets uses: changesets/action@v1 with: - version: yarn changeset version + version: yarn run version publish: yarn changeset publish title: 'chore: release package' commit: 'chore: release package' diff --git a/package.json b/package.json index b592cec9..f24a62aa 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "doc": "cd website && yarn start", "ts:check": "tsc --noEmit", "lint": "eslint --ext .ts,.tsx ./packages", - "build": "yarn build:animations && yarn build:core && yarn build:extras && yarn build:forms && yarn build:internal && yarn build:lists && yarn build:react-native" + "version": "yarn changeset version && yarn install --no-frozen-lockfile", + "build": "yarn build:internal && yarn build:core && yarn build:animations && yarn build:react-native && yarn build:extras && yarn build:forms && yarn build:lists" }, "workspaces": [ "packages/animations", diff --git a/packages/animations/CHANGELOG.md b/packages/animations/CHANGELOG.md index 4d8317ba..ecfc135c 100644 --- a/packages/animations/CHANGELOG.md +++ b/packages/animations/CHANGELOG.md @@ -1,5 +1,15 @@ # @react-native-ama/animations +## 1.0.1 + +### Patch Changes + +- Changeset changes for release ([#249](https://github.com/FormidableLabs/react-native-ama/pull/249)) + +- Updated dependencies [[`399cd815d9ea5339cb9e722aa9a1b66cdba1ab80`](https://github.com/FormidableLabs/react-native-ama/commit/399cd815d9ea5339cb9e722aa9a1b66cdba1ab80)]: + - @react-native-ama/internal@1.0.1 + - @react-native-ama/core@1.0.1 + ## 1.0.0 ### Major Changes diff --git a/packages/animations/package.json b/packages/animations/package.json index de0544a8..4b0a5cb4 100644 --- a/packages/animations/package.json +++ b/packages/animations/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/animations", - "version": "1.0.1-alpha.2", + "version": "1.0.1", "private": false, "react-native": "src/index", "types": "dist/index.d.ts", @@ -23,8 +23,8 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@react-native-ama/internal": "~1.0.1-alpha.1", - "@react-native-ama/core": "~1.0.1-alpha.1" + "@react-native-ama/internal": "~1.0.1", + "@react-native-ama/core": "~1.0.1" }, "peerDependencies": { "react": "*", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index e633bedf..1e9d0e28 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,14 @@ # @react-native-ama/core +## 1.0.1 + +### Patch Changes + +- Changeset changes for release ([#249](https://github.com/FormidableLabs/react-native-ama/pull/249)) + +- Updated dependencies [[`399cd815d9ea5339cb9e722aa9a1b66cdba1ab80`](https://github.com/FormidableLabs/react-native-ama/commit/399cd815d9ea5339cb9e722aa9a1b66cdba1ab80)]: + - @react-native-ama/internal@1.0.1 + ## 1.0.0 ### Major Changes diff --git a/packages/core/package.json b/packages/core/package.json index bd95e041..b36d1689 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/core", - "version": "1.0.1-alpha.2", + "version": "1.0.1", "description": "Accessible Mobile App Library for React Native", "private": false, "react-native": "src/index", @@ -25,7 +25,7 @@ "test": "jest" }, "dependencies": { - "@react-native-ama/internal": "~1.0.1-alpha.1" + "@react-native-ama/internal": "~1.0.1" }, "peerDependencies": { "react": "*", diff --git a/packages/extras/CHANGELOG.md b/packages/extras/CHANGELOG.md index d3affb2f..71165a7c 100644 --- a/packages/extras/CHANGELOG.md +++ b/packages/extras/CHANGELOG.md @@ -1,5 +1,16 @@ # @react-native-ama/extras +## 1.0.1 + +### Patch Changes + +- Changeset changes for release ([#249](https://github.com/FormidableLabs/react-native-ama/pull/249)) + +- Updated dependencies [[`399cd815d9ea5339cb9e722aa9a1b66cdba1ab80`](https://github.com/FormidableLabs/react-native-ama/commit/399cd815d9ea5339cb9e722aa9a1b66cdba1ab80)]: + - @react-native-ama/internal@1.0.1 + - @react-native-ama/core@1.0.1 + - @react-native-ama/animations@1.0.1 + ## 1.0.0 ### Major Changes diff --git a/packages/extras/package.json b/packages/extras/package.json index 0ce287da..0cd7b24f 100644 --- a/packages/extras/package.json +++ b/packages/extras/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/extras", - "version": "1.0.1-alpha.2", + "version": "1.0.1", "private": false, "react-native": "src/index", "types": "dist/index.d.ts", @@ -23,9 +23,9 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@react-native-ama/internal": "~1.0.1-alpha.1", - "@react-native-ama/core": "~1.0.1-alpha.1", - "@react-native-ama/animations": "~1.0.1-alpha.1" + "@react-native-ama/internal": "~1.0.1", + "@react-native-ama/core": "~1.0.1", + "@react-native-ama/animations": "~1.0.1" }, "peerDependencies": { "react": "*", diff --git a/packages/forms/CHANGELOG.md b/packages/forms/CHANGELOG.md index 5fdf2118..385c8980 100644 --- a/packages/forms/CHANGELOG.md +++ b/packages/forms/CHANGELOG.md @@ -1,5 +1,16 @@ # @react-native-ama/forms +## 1.0.1 + +### Patch Changes + +- Changeset changes for release ([#249](https://github.com/FormidableLabs/react-native-ama/pull/249)) + +- Updated dependencies [[`399cd815d9ea5339cb9e722aa9a1b66cdba1ab80`](https://github.com/FormidableLabs/react-native-ama/commit/399cd815d9ea5339cb9e722aa9a1b66cdba1ab80)]: + - @react-native-ama/internal@1.0.1 + - @react-native-ama/core@1.0.1 + - @react-native-ama/react-native@1.0.1 + ## 1.0.0 ### Major Changes diff --git a/packages/forms/package.json b/packages/forms/package.json index e612dbe2..2444eeed 100644 --- a/packages/forms/package.json +++ b/packages/forms/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/forms", - "version": "1.0.1-alpha.2", + "version": "1.0.1", "private": false, "react-native": "src/index", "types": "dist/index.d.ts", @@ -24,9 +24,9 @@ "test": "jest" }, "dependencies": { - "@react-native-ama/core": "~1.0.1-alpha.1", - "@react-native-ama/internal": "~1.0.1-alpha.1", - "@react-native-ama/react-native": "~1.0.1-alpha.1" + "@react-native-ama/core": "~1.0.1", + "@react-native-ama/internal": "~1.0.1", + "@react-native-ama/react-native": "~1.0.1" }, "peerDependencies": { "react": "*", diff --git a/packages/internal/CHANGELOG.md b/packages/internal/CHANGELOG.md index 8fb307ec..9b91194e 100644 --- a/packages/internal/CHANGELOG.md +++ b/packages/internal/CHANGELOG.md @@ -1,5 +1,11 @@ # @react-native-ama/internal +## 1.0.1 + +### Patch Changes + +- Changeset changes for release ([#249](https://github.com/FormidableLabs/react-native-ama/pull/249)) + ## 1.0.0 ### Major Changes diff --git a/packages/internal/package.json b/packages/internal/package.json index 08de93e6..688e3372 100644 --- a/packages/internal/package.json +++ b/packages/internal/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/internal", - "version": "1.0.1-alpha.2", + "version": "1.0.1", "private": false, "react-native": "src/index", "types": "dist/index.d.ts", diff --git a/packages/lists/CHANGELOG.md b/packages/lists/CHANGELOG.md index 6857cb0e..11d2cb95 100644 --- a/packages/lists/CHANGELOG.md +++ b/packages/lists/CHANGELOG.md @@ -1,5 +1,15 @@ # @react-native-ama/lists +## 1.0.1 + +### Patch Changes + +- Changeset changes for release ([#249](https://github.com/FormidableLabs/react-native-ama/pull/249)) + +- Updated dependencies [[`399cd815d9ea5339cb9e722aa9a1b66cdba1ab80`](https://github.com/FormidableLabs/react-native-ama/commit/399cd815d9ea5339cb9e722aa9a1b66cdba1ab80)]: + - @react-native-ama/internal@1.0.1 + - @react-native-ama/core@1.0.1 + ## 1.0.0 ### Major Changes diff --git a/packages/lists/package.json b/packages/lists/package.json index 1ee9f157..b9ca1a8e 100644 --- a/packages/lists/package.json +++ b/packages/lists/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/lists", - "version": "1.0.1-alpha.2", + "version": "1.0.1", "private": false, "react-native": "src/index", "types": "dist/index.d.ts", @@ -23,8 +23,8 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@react-native-ama/internal": "~1.0.1-alpha.1", - "@react-native-ama/core": "~1.0.1-alpha.1" + "@react-native-ama/internal": "~1.0.1", + "@react-native-ama/core": "~1.0.1" }, "peerDependencies": { "expo": ">=47.0.0", diff --git a/packages/react-native/CHANGELOG.md b/packages/react-native/CHANGELOG.md index bb7da523..3fec6d77 100644 --- a/packages/react-native/CHANGELOG.md +++ b/packages/react-native/CHANGELOG.md @@ -1,5 +1,15 @@ # @react-native-ama/react-native +## 1.0.1 + +### Patch Changes + +- Changeset changes for release ([#249](https://github.com/FormidableLabs/react-native-ama/pull/249)) + +- Updated dependencies [[`399cd815d9ea5339cb9e722aa9a1b66cdba1ab80`](https://github.com/FormidableLabs/react-native-ama/commit/399cd815d9ea5339cb9e722aa9a1b66cdba1ab80)]: + - @react-native-ama/internal@1.0.1 + - @react-native-ama/core@1.0.1 + ## 1.0.0 ### Major Changes diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 7f47f1a8..9065ef35 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-ama/react-native", - "version": "1.0.1-alpha.2", + "version": "1.0.1", "private": false, "react-native": "src/index", "types": "dist/index.d.ts", @@ -23,8 +23,8 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@react-native-ama/internal": "~1.0.1-alpha.1", - "@react-native-ama/core": "~1.0.1-alpha.1" + "@react-native-ama/internal": "~1.0.1", + "@react-native-ama/core": "~1.0.1" }, "peerDependencies": { "react": "*",