diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 414f03b65711..a4ba5149c885 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -7,12 +7,6 @@ on: push: branches: [26_1] workflow_dispatch: - inputs: - SBOM: - description: 'Build SBOM' - required: false - default: false - type: boolean concurrency: group: wf-${{github.event.pull_request.number || github.ref || github.sha}}-${{github.workflow}} @@ -111,23 +105,6 @@ jobs: artifacts/npm/*.tgz retention-days: 1 - - name: Build SBOMs - if: ${{ github.event_name == 'push' || github.event.inputs.SBOM == 'true' }} - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - pnpm set //npm.pkg.github.com/:_authToken="$NODE_AUTH_TOKEN"; - pnpm nx build sbom; - - - name: Upload SBOM artifacts - if: ${{ github.event_name == 'push' || github.event.inputs.SBOM == 'true' }} - uses: actions/upload-artifact@v7 - with: - name: sbom - path: | - packages/sbom/dist/**/* - retention-days: 1 - custom_bundles: runs-on: devextreme-shr2 needs: build diff --git a/.github/workflows/packages_publishing.yml b/.github/workflows/packages_publishing.yml index fd1940048b24..e5a7b4ef6822 100644 --- a/.github/workflows/packages_publishing.yml +++ b/.github/workflows/packages_publishing.yml @@ -52,12 +52,13 @@ jobs: BUILD_INTERNAL_PACKAGE: true run: pnpm run all:build + - name: Set GitHub Packages auth + run: pnpm set //npm.pkg.github.com/:_authToken='${NODE_AUTH_TOKEN}' + - name: Build SBOMs env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - pnpm set //npm.pkg.github.com/:_authToken="$NODE_AUTH_TOKEN"; - pnpm nx build sbom; + run: pnpm nx build sbom - name: Build artifacts package run: pnpm run make-artifacts-package @@ -124,10 +125,13 @@ jobs: pnpm pkg get version | tr -d '"' | sed -r 's/(.*)/version=\1/' >> "$GITHUB_OUTPUT"; pnpm pkg get version | tr -d '"' | sed -r 's/([0-9]+\.[0-9]+).*/majorVersion=\1/' >> "$GITHUB_OUTPUT"; + - name: Set GitHub Packages auth + run: pnpm set //npm.pkg.github.com/:_authToken='${NODE_AUTH_TOKEN}' + # --ignore-scripts is required for publishing devextreme-angular which fails with error: # 'Trying to publish a package that has been compiled by Ivy in full compilation mode.' # Should be removed. - - name: Publish to npm.pkg.github.com + - name: Publish to GitHub Packages working-directory: ${{ steps.scopedPackage.outputs.packageDir }} env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -135,7 +139,6 @@ jobs: PACKAGE_VERSION: ${{ steps.scopedPackage.outputs.version }} PACKAGE_VERSION_MAJOR: ${{ steps.scopedPackage.outputs.majorVersion }} run: | - pnpm set //npm.pkg.github.com/:_authToken="$NODE_AUTH_TOKEN"; pnpm publish --no-git-checks --quiet --ignore-scripts --tag $PACKAGE_VERSION_MAJOR-${{ inputs.tag }} --registry https://npm.pkg.github.com; pnpm dist-tag add $PACKAGE_NAME@$PACKAGE_VERSION latest --registry=https://npm.pkg.github.com;