ci: Separate NPM upgrade from publish step
This commit is contained in:
@@ -47,6 +47,9 @@ jobs:
|
||||
- name: Setup
|
||||
uses: ./.github/actions/setup
|
||||
|
||||
- name: Update NPM
|
||||
run: sudo npm i -g npm@latest
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name 'github-actions[bot]'
|
||||
@@ -61,9 +64,7 @@ jobs:
|
||||
|
||||
- name: Publish to NPM
|
||||
working-directory: packages/${{ inputs.package }}
|
||||
run: |
|
||||
sudo npm i -g npm@latest
|
||||
npm publish
|
||||
run: npm publish
|
||||
|
||||
- name: Create GitHub release
|
||||
run: pnpm tsx scripts/create-github-release.ts ${{ inputs.package }}
|
||||
|
||||
@@ -23,6 +23,9 @@ jobs:
|
||||
with:
|
||||
installArgs: --ignore-scripts
|
||||
|
||||
- name: Update NPM
|
||||
run: sudo npm i -g npm@latest
|
||||
|
||||
- name: Generate Latest Code
|
||||
working-directory: packages/browser
|
||||
run: pnpm gen
|
||||
@@ -42,6 +45,4 @@ jobs:
|
||||
- name: Publish Package
|
||||
if: steps.commit.outputs.changes_detected == 'true'
|
||||
working-directory: packages/browser
|
||||
run: |
|
||||
sudo npm i -g npm@latest
|
||||
npm publish
|
||||
run: npm publish
|
||||
|
||||
Reference in New Issue
Block a user