|
1 | 1 | name: Publish release to npm |
2 | 2 | on: |
3 | 3 | schedule: |
4 | | - - cron: '27 23 * * *' # at 23:27 every day |
| 4 | + - cron: "27 23 * * *" # at 23:27 every day |
5 | 5 | workflow_dispatch: |
6 | 6 | inputs: |
7 | 7 | release-type: |
|
20 | 20 | from npm latest tag. |
21 | 21 | type: string |
22 | 22 | required: false |
23 | | - default: '' |
| 23 | + default: "" |
24 | 24 | dry-run: |
25 | 25 | description: Whether to perform a dry run of the publish. |
26 | 26 | type: boolean |
@@ -51,16 +51,16 @@ jobs: |
51 | 51 | uses: actions/setup-node@v6 |
52 | 52 | with: |
53 | 53 | node-version: 24 |
54 | | - cache: 'yarn' |
| 54 | + cache: "yarn" |
55 | 55 | registry-url: https://registry.npmjs.org/ |
56 | 56 |
|
57 | 57 | - name: Publish manual release |
58 | 58 | if: ${{ github.event_name == 'workflow_dispatch' }} |
59 | 59 | uses: software-mansion/npm-package-publish@264013301cc21350186b190f1f6dd10ae4c8ee04 |
60 | 60 | with: |
61 | | - package-name: 'react-native-screens' |
62 | | - package-json-path: 'package.json' |
63 | | - install-dependencies-command: 'yarn install --immutable' |
| 61 | + package-name: "react-native-screens" |
| 62 | + package-json-path: "package.json" |
| 63 | + install-dependencies-command: "yarn install --immutable" |
64 | 64 | release-type: ${{ inputs.release-type }} |
65 | 65 | version: ${{ inputs.version }} |
66 | 66 | dry-run: ${{ inputs.dry-run }} |
|
69 | 69 | if: ${{ github.event_name == 'schedule' }} |
70 | 70 | uses: software-mansion/npm-package-publish@264013301cc21350186b190f1f6dd10ae4c8ee04 |
71 | 71 | with: |
72 | | - package-name: 'react-native-screens' |
73 | | - package-json-path: 'package.json' |
74 | | - install-dependencies-command: 'yarn install --immutable' |
75 | | - release-type: 'nightly' |
76 | | - dry-run: true |
| 72 | + package-name: "react-native-screens" |
| 73 | + package-json-path: "package.json" |
| 74 | + install-dependencies-command: "yarn install --immutable" |
| 75 | + release-type: "nightly" |
| 76 | + dry-run: false |
0 commit comments