You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

npm-audit-fix.yml 2.3KB

chore(deps): Bump the github-actions group with 4 updates Bumps the github-actions group with 4 updates: [andstor/file-existence-action](https://github.com/andstor/file-existence-action), [cypress-io/github-action](https://github.com/cypress-io/github-action), [codecov/codecov-action](https://github.com/codecov/codecov-action) and [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request). Updates `andstor/file-existence-action` from 2.0.0 to 3.0.0 - [Release notes](https://github.com/andstor/file-existence-action/releases) - [Commits](https://github.com/andstor/file-existence-action/compare/20b4d2e596410855db8f9ca21e96fbe18e12930b...076e0072799f4942c8bc574a82233e1e4d13e9d6) Updates `cypress-io/github-action` from 6.6.0 to 6.6.1 - [Release notes](https://github.com/cypress-io/github-action/releases) - [Changelog](https://github.com/cypress-io/github-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/cypress-io/github-action/compare/ebe8b24c4428922d0f793a5c4c96853a633180e3...1b70233146622b69e789ccdd4f9452adc638d25a) Updates `codecov/codecov-action` from 3 to 4 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Commits](https://github.com/codecov/codecov-action/compare/v3...v4) Updates `peter-evans/create-pull-request` from 5.0.2 to 6.0.1 - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/153407881ec5c347639a548ade7d8ad1d6740e38...a4f52f8033a6168103c2538976c07b467e8163bc) --- updated-dependencies: - dependency-name: andstor/file-existence-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: cypress-io/github-action dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
2 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # This workflow is provided via the organization template repository
  2. #
  3. # https://github.com/nextcloud/.github
  4. # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
  5. name: Npm audit fix and compile
  6. on:
  7. workflow_dispatch:
  8. schedule:
  9. # At 2:30 on Sundays
  10. - cron: '30 2 * * 0'
  11. jobs:
  12. build:
  13. runs-on: ubuntu-latest
  14. strategy:
  15. fail-fast: false
  16. matrix:
  17. branches: ["main", "master", "stable29", "stable28", "stable27"]
  18. name: npm-audit-fix-${{ matrix.branches }}
  19. steps:
  20. - name: Checkout
  21. uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.6.0
  22. with:
  23. ref: ${{ matrix.branches }}
  24. - name: Read package.json node and npm engines version
  25. uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
  26. id: versions
  27. with:
  28. fallbackNode: '^20'
  29. fallbackNpm: '^9'
  30. - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
  31. uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
  32. with:
  33. node-version: ${{ steps.versions.outputs.nodeVersion }}
  34. - name: Set up npm ${{ steps.versions.outputs.npmVersion }}
  35. run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
  36. - name: Fix npm audit
  37. run: |
  38. npm audit fix
  39. - name: Run npm ci and npm run build
  40. if: always()
  41. env:
  42. CYPRESS_INSTALL_BINARY: 0
  43. PUPPETEER_SKIP_DOWNLOAD: true
  44. run: |
  45. npm ci
  46. npm run build --if-present
  47. - name: Create Pull Request
  48. if: always()
  49. uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc # v5
  50. with:
  51. token: ${{ secrets.COMMAND_BOT_PAT }}
  52. commit-message: "chore(deps): fix npm audit"
  53. committer: GitHub <noreply@github.com>
  54. author: nextcloud-command <nextcloud-command@users.noreply.github.com>
  55. signoff: true
  56. branch: automated/noid/${{ matrix.branches }}-fix-npm-audit
  57. title: "[${{ matrix.branches }}] Fix npm audit"
  58. body: |
  59. Auto-generated fix of npm audit
  60. labels: |
  61. dependencies
  62. 3. to review