diff --git a/.github/workflows/actions/publish-npm/action.yml b/.github/workflows/actions/publish-npm/action.yml index 2c482c4fff..4022753792 100644 --- a/.github/workflows/actions/publish-npm/action.yml +++ b/.github/workflows/actions/publish-npm/action.yml @@ -22,15 +22,17 @@ runs: - uses: actions/setup-node@v3 with: node-version: 16.x - - name: Install latest npm - run: npm install -g npm@latest + # This ensures the local version of Lerna is installed + # and that we do not use the global Lerna version + - name: Install root dependencies + run: npm ci shell: bash - name: Install Dependencies - run: lerna bootstrap --include-dependencies --scope ${{ inputs.scope }} --ignore-scripts -- --legacy-peer-deps + run: npx lerna bootstrap --include-dependencies --scope ${{ inputs.scope }} --ignore-scripts -- --legacy-peer-deps shell: bash working-directory: ${{ inputs.working-directory }} - name: Update Version - run: lerna version ${{ inputs.version }} --yes --exact --no-changelog --no-push --no-git-tag-version --preid=${{ inputs.preid }} + run: npx lerna version ${{ inputs.version }} --yes --exact --no-changelog --no-push --no-git-tag-version --preid=${{ inputs.preid }} shell: bash working-directory: ${{ inputs.working-directory }} - name: Run Build