diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..f33a02cd1 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for more information: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +# https://containers.dev/guide/dependabot + +version: 2 +updates: + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: weekly diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6b2dbf73a..90b8590f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,14 +1,14 @@ name: Build and publish - on: - workflow_run: - workflows: [Tests] - types: completed - + push: + tags: + - '*' jobs: + tests: + uses: ./.github/workflows/tests.yml build: + needs: [tests] runs-on: ${{ matrix.os }} - if: github.event.workflow_run.conclusion == 'success' && github.ref_type == 'tag' && startsWith(github.ref_name, 'v') strategy: matrix: os: @@ -18,16 +18,14 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 16 cache: 'npm' - name: Install Snapcraft - # TODO: Bump after we're sure it works with samuelmeuli/action-electron-builder@v1 uses: samuelmeuli/action-snapcraft@v1 if: startsWith(matrix.os, 'ubuntu') - name: Build & publish Caprine - # TODO: Upgrade action in fork https://github.com/dusansimic/action-electron-builder uses: samuelmeuli/action-electron-builder@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e62d7c094..01817676b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -66,9 +66,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 16 cache: 'npm' - name: Run tests run: |