diff --git a/.github/workflows/changesets.yaml b/.github/workflows/changesets.yaml index 364ffae..98725eb 100644 --- a/.github/workflows/changesets.yaml +++ b/.github/workflows/changesets.yaml @@ -8,6 +8,11 @@ on: permissions: contents: read +env: + GH_TOKEN: ${{ secrets.DUCKTORS_PAT }} + GITHUB_TOKEN: ${{ secrets.DUCKTORS_PAT }} + NPM_TOKEN: ${{ secrets.MAGIO_NPM_TOKEN }} + jobs: release: name: Changesets @@ -19,16 +24,20 @@ jobs: with: egress-policy: audit - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + name: Checkout + with: + fetch-depth: 0 + persist-credentials: false + - name: Use Node.js uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 with: - node-version: 20 + node-version: 22 - - name: Install pnpm - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 + - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 with: - version: 9.12.1 + version: 9 - name: Get pnpm store directory id: pnpm-cache @@ -36,7 +45,7 @@ jobs: run: | echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 + - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} @@ -51,7 +60,7 @@ jobs: run: pnpm build - name: Create Release Pull Request - uses: changesets/action@c8bada60c408975afd1a20b3db81d6eee6789308 # v1.4.9 + uses: changesets/action@3de3850952bec538fde60aac71731376e57b9b57 # v1.4.8 with: publish: pnpm release createGithubReleases: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 060b4be..718485a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: name: Build strategy: matrix: - node-version: [18.x, 20.x, 22.x] + node-version: [20.x, 22.x] # os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, macos-latest] steps: @@ -99,4 +99,4 @@ jobs: run: pnpm install --frozen-lockfile - name: Lint code - run: pnpm lint \ No newline at end of file + run: pnpm lint diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 37b5b47..e5b581a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,7 +21,7 @@ jobs: name: Coverage strategy: matrix: - node-version: [18.x, 20.x, 22.x] + node-version: [20.x, 22.x] # os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, macos-latest] steps: @@ -72,4 +72,4 @@ jobs: env: CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TEST_REPORTER_ID }} with: - coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov \ No newline at end of file + coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov