mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-12-14 09:22:34 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59ee3572f3 | ||
|
|
98f72f01d2 |
12
.github/workflows/publish.yml
vendored
12
.github/workflows/publish.yml
vendored
@@ -2,6 +2,11 @@ name: Publish Package to npmjs
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
permissions:
|
||||
id-token: write # Required for OIDC
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -14,9 +19,10 @@ jobs:
|
||||
# Setup .npmrc file to publish to npm
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20.x'
|
||||
node-version: '24.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: bun install --frozen-lockfile
|
||||
# Ensure npm 11.5.1 or later is installed
|
||||
- name: Update npm
|
||||
run: npm install -g npm@latest
|
||||
- run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
@@ -224,12 +224,12 @@ export const packageCommands = {
|
||||
options,
|
||||
}: {
|
||||
args: string[];
|
||||
options: { appId?: string; packageId?: string; packageVersion?: string };
|
||||
options: { appId?: string; packageId?: string; packageVersion?: string; platform?: Platform };
|
||||
}) => {
|
||||
let { appId, packageId, packageVersion } = options;
|
||||
|
||||
if (!appId) {
|
||||
const platform = await getPlatform();
|
||||
const platform = await getPlatform(options.platform);
|
||||
appId = (await getSelectedApp(platform)).appId as string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user