chore(deps): update dependency lint-staged to v13.3.0 #2765
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
- beta | |
- 'renovate/**' | |
pull_request: | |
jobs: | |
lint: | |
uses: vidavidorra/.github/.github/workflows/node-lint.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0 | |
build: | |
name: Build (Node.js ${{ matrix.nodeVersion }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
nodeVersion: [16, 18, 20] | |
uses: vidavidorra/.github/.github/workflows/node-build.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0 | |
with: | |
nodeVersion: ${{ matrix.nodeVersion }} | |
test: | |
name: Test (Node.js v${{ matrix.node }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [16, 18, 20] | |
uses: vidavidorra/.github/.github/workflows/node-test.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0 | |
with: | |
nodeVersion: ${{ matrix.node }} | |
code-coverage: | |
name: Test coverage | |
needs: [lint, build, test] | |
uses: vidavidorra/.github/.github/workflows/node-test-coverage.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0 | |
secrets: | |
codecovToken: ${{ secrets.CODECOV_TOKEN }} | |
release: | |
needs: [lint, build, test, code-coverage] | |
runs-on: ubuntu-latest | |
# GitHub API requests can easy take a couple of seconds and the release can | |
# make lots of API requests when a release has a lot of commits. If every | |
# requests takes five seconds, which is on the high side for a request, this | |
# could perform 180 requests. This should be enough for most use cases. | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
# Make sure the release step uses its own credentials. | |
persist-credentials: false | |
- name: Setup node | |
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | |
with: | |
node-version: 18 | |
- name: Install project | |
run: npm ci --ignore-scripts | |
- name: Build | |
run: npm run build | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} | |
GIT_AUTHOR_NAME: vidavidorra-release | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_COMMITTER_NAME: vidavidorra-release | |
GIT_COMMITTER_EMAIL: [email protected] | |
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
run: npx --no-install semantic-release |