diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 60d2e20..9e5753d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,35 @@ version: 2 updates: - - package-ecosystem: npm - directory: '/' - schedule: - interval: weekly - open-pull-requests-limit: 10 +- package-ecosystem: npm + directory: "/" + schedule: + interval: weekly + time: "11:00" + open-pull-requests-limit: 10 + versioning-strategy: increase-if-necessary + groups: + patch-deps-updates: + update-types: + - "patch" + minor-deps-updates: + update-types: + - "minor" + major-deps-updates: + update-types: + - "major" +- package-ecosystem: github-actions + directory: "/" + schedule: + interval: weekly + time: "11:00" + open-pull-requests-limit: 10 + groups: + patch-deps-updates: + update-types: + - "patch" + minor-deps-updates: + update-types: + - "minor" + major-deps-updates: + update-types: + - "major" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d8449b..9bffcbf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,18 +11,14 @@ on: jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [20.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - name: Use Node.js + uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 with: - node-version: ${{ matrix.node-version }} + node-version-file: .nvmrc - name: Cache pnpm modules - uses: actions/cache@v3 + uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 env: cache-name: cache-pnpm-modules with: @@ -30,7 +26,7 @@ jobs: key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}- - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 with: version: 8.8.0 run_install: false @@ -40,8 +36,3 @@ jobs: run: pnpm -r --workspace-concurrency=1 build - name: ๐Ÿงช Run Tests run: pnpm test - - name: ๐Ÿ› Debug Build - uses: stateful/vscode-server-action@v1 - if: failure() - with: - timeout: '120000' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cecb7cd..31302cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,31 +18,24 @@ on: default: 'latest' env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_CONFIG_PROVENANCE: true jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: ref: 'main' fetch-depth: 0 - # - run: | - # echo "Not yet ready!" - # exit 1 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 with: - node-version: 20.x - - uses: pnpm/action-setup@v2 + node-version-file: .nvmrc + registry-url: "https://registry.npmjs.org" + - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 with: - version: 8.8.0 + version: 10.26.1 run_install: true - - name: NPM Setup - run: | - pnpm set registry "https://registry.npmjs.org/" - pnpm set //registry.npmjs.org/:_authToken $NPM_TOKEN - pnpm whoami - name: Git Setup run: | git config --global user.email "bot@webdriver.io" @@ -58,5 +51,4 @@ jobs: - name: Release run: pnpm -r publish --access public --no-git-checks env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 8dd9bee..2d81d46 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Fetch PR metadata id: metadata - uses: dependabot/fetch-metadata@v1.6.0 + uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2.4.0 with: github-token: ${{ secrets.GITHUB_TOKEN }} @@ -27,7 +27,7 @@ jobs: # Don't merge updates to GitHub Actions versions automatically. # (Some repos may wish to limit by version range (major/minor/patch), or scope (dep vs dev-dep), too.) if: contains(steps.metadata.outputs.package-ecosystem, 'npm') - uses: lewagon/wait-on-check-action@v1.3.1 + uses: lewagon/wait-on-check-action@3603e826ee561ea102b58accb5ea55a1a7482343 # v1.4.1 with: ref: ${{ github.event.pull_request.head.sha }} repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.nvmrc b/.nvmrc index af9754b..54c6511 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.8.1 +v24