From 298f45178f0c4b95a759bc4de783665db283b5c7 Mon Sep 17 00:00:00 2001 From: Bill Church Date: Sun, 7 Aug 2022 12:07:22 +0000 Subject: [PATCH] chore: update workflow --- .github/workflows/release.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c2de5e5..9b60fff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,7 @@ jobs: command: manifest package-name: webssh2 path: app + default-branch: main publish: runs-on: ubuntu-latest needs: release @@ -35,17 +36,11 @@ jobs: with: node-version: 16 registry-url: 'https://registry.npmjs.org' - - name: Build Packages - 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 + - name: publish-to-npm env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} run: | cd ${{ matrix.path }} + npm install + npx lerna bootstrap npx lerna publish from-package --no-push --no-private --yes \ No newline at end of file