chore: bump dorny/paths-filter from 3.0.2 to 4.0.1 #123
This file contains hidden or 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: test & maybe release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| id-token: write | |
| packages: write | |
| pull-requests: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| js-test-and-release: | |
| uses: ipdxco/unified-github-workflows/.github/workflows/js-test-and-release.yml@v1.0 | |
| secrets: | |
| DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} | |
| DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| UCI_GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN }} | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| ## Detect changs to the devtools package | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| devtools-changed: ${{ steps.changes.outputs.devtools }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 | |
| id: changes | |
| with: | |
| filters: | | |
| devtools: | |
| - 'packages/libp2p-devtools/**' | |
| publish-extension: | |
| runs-on: ubuntu-latest | |
| needs: [js-test-and-release, changes] | |
| if: needs.js-test-and-release.outputs.release == 'true' && needs.changes.outputs.devtools-changed == 'true' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - uses: ipfs/aegir/actions/cache-node-modules@main | |
| - run: npm run package | |
| working-directory: 'packages/libp2p-devtools' | |
| - run: npm run publish:chrome-store | |
| working-directory: 'packages/libp2p-devtools' | |
| env: | |
| CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | |
| CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | |
| CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} | |
| CHROME_EXTENSION_ID: ${{ vars.CHROME_EXTENSION_ID }} |