Skip to content

Commit ceb97f7

Browse files
committed
Merge branch 'master' of https://github.com/reduxjs/redux-toolkit into Sriram-Example-Fix-3
2 parents de5ee76 + 3615d1a commit ceb97f7

File tree

170 files changed

+11734
-2459
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+11734
-2459
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,34 @@ on:
1414
- '@rtk-query/codegen-openapi'
1515
- '@rtk-query/graphql-request-base-query'
1616
- '@reduxjs/rtk-codemods'
17+
tag:
18+
description: 'NPM dist-tag (latest, alpha, beta, next)'
19+
required: true
20+
default: 'latest'
21+
type: choice
22+
options:
23+
- latest
24+
- next
25+
- alpha
26+
- beta
27+
28+
permissions: {}
29+
1730
jobs:
1831
publish:
1932
runs-on: ubuntu-latest
2033
permissions:
2134
id-token: write
2235
contents: read
2336
steps:
24-
- uses: actions/checkout@v4
25-
- uses: actions/setup-node@v4
37+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
38+
with:
39+
persist-credentials: false
40+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
2641
with:
27-
node-version: '22.x'
42+
node-version: '24.x'
2843
registry-url: 'https://registry.npmjs.org'
2944
cache: 'yarn'
3045
- run: yarn install --frozen-lockfile
3146
- run: yarn workspace ${{ inputs.package }} test
32-
- run: yarn workspace ${{ inputs.package }} exec npm publish --access public --provenance
33-
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
47+
- run: yarn workspace ${{ inputs.package }} exec npm publish --access public --provenance --tag ${{ inputs.tag }}

.github/workflows/size.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
env:
1313
CI_JOB_NUMBER: 1
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: EskiMojo14/size-limit-action@v2
15+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
16+
- uses: EskiMojo14/size-limit-action@af0584be5b6cc2d056bd31a314fc2ce9c9c1a929 # v2
1717
with:
1818
directory: packages/toolkit
1919
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test-codegen.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
outputs:
1616
codegen: ${{ steps.filter.outputs.codegen }}
1717
steps:
18-
- uses: actions/checkout@v4
19-
- uses: dorny/paths-filter@v3
18+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
19+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
2020
id: filter
2121
with:
2222
filters: |
@@ -39,15 +39,15 @@ jobs:
3939

4040
strategy:
4141
matrix:
42-
node-version: ['22.x']
42+
node-version: ['24.x']
4343
os: [ubuntu-latest]
4444

4545
steps:
4646
- name: Checkout repository
47-
uses: actions/checkout@v4
47+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
4848

4949
- name: Setup Node ${{ matrix.node-version }}
50-
uses: actions/setup-node@v4
50+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
5151
with:
5252
node-version: ${{ matrix.node-version }}
5353
cache: 'yarn'
@@ -59,7 +59,7 @@ jobs:
5959
run: yarn pack
6060

6161
- name: Upload artifact
62-
uses: actions/upload-artifact@v4
62+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
6363
id: artifact-upload-step
6464
with:
6565
name: package
@@ -79,22 +79,22 @@ jobs:
7979
strategy:
8080
fail-fast: false
8181
matrix:
82-
node-version: [22.x]
82+
node-version: [24.x]
8383
os: [ubuntu-latest]
8484

8585
steps:
8686
- name: Checkout repository
87-
uses: actions/checkout@v4
87+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
8888

8989
- name: Setup Node ${{ matrix.node-version }}
90-
uses: actions/setup-node@v4
90+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
9191
with:
9292
node-version: ${{ matrix.node-version }}
9393
cache: 'yarn'
9494

9595
- name: Download artifact
9696
id: download-artifact
97-
uses: actions/download-artifact@v4
97+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
9898
with:
9999
path: ./packages/rtk-query-codegen-openapi
100100
name: package
@@ -125,13 +125,13 @@ jobs:
125125
strategy:
126126
fail-fast: false
127127
matrix:
128-
node-version: [22.x]
128+
node-version: [24.x]
129129
steps:
130130
- name: Checkout repo
131-
uses: actions/checkout@v4
131+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
132132

133133
- name: Use node ${{ matrix.node-version }}
134-
uses: actions/setup-node@v4
134+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
135135
with:
136136
node-version: ${{ matrix.node-version }}
137137
cache: 'yarn'
@@ -141,10 +141,10 @@ jobs:
141141

142142
- name: Download artifact
143143
id: download-artifact
144-
uses: actions/download-artifact@v4
144+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
145145
with:
146146
path: ./packages/rtk-query-codegen-openapi
147147
name: package
148148

149149
- name: Run are-the-types-wrong
150-
run: yarn dlx @arethetypeswrong/cli@latest ./package.tgz --format table
150+
run: yarn dlx @arethetypeswrong/cli@latest ./package.tgz --format table --exclude-entrypoints cli

0 commit comments

Comments
 (0)