Skip to content

Commit 0d3a24b

Browse files
updated workflow (#1174)
1 parent 018b3db commit 0d3a24b

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

.github/actions/npm-publish/action.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ inputs:
55
required: true
66
version:
77
required: true
8-
require-build:
9-
default: true
108
release-directory:
119
default: './'
1210

@@ -21,9 +19,8 @@ runs:
2119
uses: ./.github/actions/setup
2220

2321
- name: Build package
24-
if: inputs.require-build == 'true'
2522
shell: bash
26-
run: yarn build
23+
run: yarn ci
2724

2825
- name: Publish release to NPM
2926
shell: bash

.github/workflows/npm-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Create npm and GitHub Release
33
on:
44
workflow_call:
55
inputs:
6-
require-build:
7-
default: 'true'
8-
type: string
96
release-directory:
107
default: './'
118
type: string
@@ -60,7 +57,6 @@ jobs:
6057
# Publish the release to our package manager
6158
- uses: ./.github/actions/npm-publish
6259
with:
63-
require-build: ${{ inputs.require-build }}
6460
version: ${{ steps.get_version.outputs.version }}
6561
npm-token: ${{ secrets.npm-token }}
6662
release-directory: ${{ inputs.release-directory }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"lint": "eslint \"**/*.{js,ts,tsx}\"",
3939
"release": "release-it",
4040
"bootstrap": "cd example && npm ci",
41+
"ci": "yarn install --immutable && yarn prepare",
4142
"clean": "del-cli lib out android/build example/android/build example/android/app/build example/ios/build",
4243
"prepare": "husky && bob build && rm -rf lib/*/package.json",
4344
"example:android": "cd example && npm run android",

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13356,8 +13356,8 @@ __metadata:
1335613356
linkType: hard
1335713357

1335813358
"react-native-paper@npm:^5.14.0":
13359-
version: 5.14.2
13360-
resolution: "react-native-paper@npm:5.14.2"
13359+
version: 5.14.3
13360+
resolution: "react-native-paper@npm:5.14.3"
1336113361
dependencies:
1336213362
"@callstack/react-theme-provider": ^3.0.9
1336313363
color: ^3.1.2
@@ -13366,7 +13366,7 @@ __metadata:
1336613366
react: "*"
1336713367
react-native: "*"
1336813368
react-native-safe-area-context: "*"
13369-
checksum: 44916c4f3a0962afdb272aec0d4db01203793b0e885e5f80fc07c49f9aa1bda3d010b00237396351addd916a774c9478a0076dc281536c461ec9c85668ce071f
13369+
checksum: 6083c84778f5f099e74237b6a362a6e6cbb19d9e35d1a0cf7f2df7e67c8368acd2d96e002315c98a2a9feca60dad15e1a9a094b43016e7c1dcbb150a18a8072f
1337013370
languageName: node
1337113371
linkType: hard
1337213372

0 commit comments

Comments
 (0)