Skip to content

Commit

Permalink
chore: set nvm version and pnpm version
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Dec 7, 2023
1 parent c517695 commit 503d21f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ runs:
- name: Setup Node 💚
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18
cache: "pnpm"
19 changes: 11 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@ name: Publish to NPM
on:
workflow_dispatch:
inputs:
package:
type: choice
description: "choose package"
default: "agora-rtc-react"
required: true
options:
- agora-rtc-react
- agora-rtc-react-ui
increment:
description: 'Increment "major", "minor", "patch", or "pre*" version; or specify version [default: "patch"]'
required: true
default: "patch"
type: string
releases:
description: "create Releases, choose false if specify version"
default: true
type: boolean
dry-run:
description: "Do not touch or write anything, but show the commands"
default: true
Expand Down Expand Up @@ -42,8 +46,7 @@ jobs:
- name: Dry Run Release
if: ${{ inputs.dry-run }}
run: |
npm whoami
pnpm -F agora-rtc-react release ${{ inputs.increment }} -d --ci
pnpm -F ${{ inputs.package }} release ${{ inputs.increment }} -d --ci
- name: Config Git
if: ${{ !inputs.dry-run }}
Expand All @@ -59,9 +62,9 @@ jobs:
- name: Update VERSION
if: ${{ !inputs.dry-run }}
run: |
pnpm -F agora-rtc-react exec esbuild-dev $PWD/scripts/release/update-version.ts target:agora-rtc-react @${{ inputs.increment }}
pnpm -F ${{ inputs.package }} exec esbuild-dev $PWD/scripts/release/update-version.ts target:${{ inputs.package }} @${{ inputs.increment }}
- name: NPM Publish
if: ${{ !inputs.dry-run }}
run: |
pnpm -F agora-rtc-react release ${{ inputs.increment }} --ci --github.release=${{ inputs.releases }}
pnpm -F ${{ inputs.package }} release ${{ inputs.increment }} --ci --github.release=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.16.0
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "agora-rtc-react-mono",
"private": true,
"description": "Agora RTC React SDK",
"engines": {
"node": ">=18",
"pnpm": ">=8"
},
"scripts": {
"prepare": "husky install",
"build": "pnpm -r run build",
Expand Down

0 comments on commit 503d21f

Please sign in to comment.