diff --git a/.github/workflows/dependabot-build.yml b/.github/workflows/dependabot-build.yml deleted file mode 100644 index 7faaca10..00000000 --- a/.github/workflows/dependabot-build.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Run build for dependabot PRs - -on: - pull_request: - types: [opened, synchronize] - -permissions: - contents: write - pull-requests: read - -defaults: - run: - shell: bash - -jobs: - build: - if: ${{ github.actor == 'dependabot[bot]' }} - runs-on: ubuntu-22.04 - steps: - - name: Fetch Dependabot metadata - id: dependabot-metadata - uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0 - - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm_and_yarn' }} - with: - ref: ${{ github.head_ref }} - token: ${{ secrets.COMMIT_PAT }} - - - name: Set up Node.js 16.x - if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm_and_yarn' }} - uses: - actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 - with: - node-version: 16.x - - - name: Install dependencies - if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm_and_yarn' }} - run: npm ci - - - name: Run build - if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm_and_yarn' }} - run: | - npm run build - npm run package - - - name: Commit changes - if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm_and_yarn' }} - id: commit - uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 - with: - commit_message: 'Update dist/ after build' diff --git a/.github/workflows/renovate-build.yml b/.github/workflows/renovate-build.yml new file mode 100644 index 00000000..58babd34 --- /dev/null +++ b/.github/workflows/renovate-build.yml @@ -0,0 +1,41 @@ +name: Run build for dependabot PRs + +on: + pull_request: + types: [opened, synchronize] + +permissions: + contents: write + pull-requests: read + +defaults: + run: + shell: bash + +jobs: + build: + if: ${{ github.actor == 'renovate[bot]' }} + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.COMMIT_PAT }} + + - name: Set up Node.js + uses: + actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 + with: + node-version-file: .nvmrc + + - name: Install dependencies + run: yarn install + + - name: Run build + run: yarn build + + - name: Commit changes + id: commit + uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 + with: + commit_message: 'Update dist/ after build'