chore: update workflow
This commit is contained in:
parent
adc964e823
commit
298f45178f
1 changed files with 4 additions and 9 deletions
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
@ -22,6 +22,7 @@ jobs:
|
||||||
command: manifest
|
command: manifest
|
||||||
package-name: webssh2
|
package-name: webssh2
|
||||||
path: app
|
path: app
|
||||||
|
default-branch: main
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: release
|
needs: release
|
||||||
|
@ -35,17 +36,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: Build Packages
|
- name: publish-to-npm
|
||||||
run: |
|
|
||||||
cd ${{ matrix.path }}
|
|
||||||
npm install
|
|
||||||
npx lerna bootstrap
|
|
||||||
# Release Please has already incremented versions and published tags, so we just
|
|
||||||
# need to publish all unpublished versions to NPM here
|
|
||||||
# See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package
|
|
||||||
- name: Publish to NPM
|
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
run: |
|
run: |
|
||||||
cd ${{ matrix.path }}
|
cd ${{ matrix.path }}
|
||||||
|
npm install
|
||||||
|
npx lerna bootstrap
|
||||||
npx lerna publish from-package --no-push --no-private --yes
|
npx lerna publish from-package --no-push --no-private --yes
|
Loading…
Reference in a new issue