Skip to content

Commit

Permalink
Update release package workflow (#249)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
JDMathew authored Sep 10, 2024
1 parent 4213fbb commit 264e53d
Show file tree
Hide file tree
Showing 18 changed files with 118 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "minor",
"updateInternalDependencies": "patch",
"ignore": []
}
19 changes: 19 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Release
name: AMA Release Workflow
on:
push:
branches:
- main
workflow_dispatch:
jobs:
release:
name: Release
Expand Down Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions packages/animations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/animations/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": "*",
Expand Down
9 changes: 9 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": "*",
Expand Down
11 changes: 11 additions & 0 deletions packages/extras/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions packages/extras/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": "*",
Expand Down
11 changes: 11 additions & 0 deletions packages/forms/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions packages/forms/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": "*",
Expand Down
6 changes: 6 additions & 0 deletions packages/internal/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/internal/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 10 additions & 0 deletions packages/lists/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/lists/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions packages/react-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": "*",
Expand Down

0 comments on commit 264e53d

Please sign in to comment.