File tree Expand file tree Collapse file tree 3 files changed +42
-9
lines changed
Expand file tree Collapse file tree 3 files changed +42
-9
lines changed Original file line number Diff line number Diff line change 1+ name : Setup
2+ description : Setup Node.js and install dependencies
3+
4+
5+ runs :
6+ using : composite
7+ steps :
8+ - name : Setup Node.js
9+ uses : actions/setup-node@v6
10+ with :
11+ node-version : 22.x
12+ cache : npm
13+ cache-dependency-path : package-lock.json
14+ registry-url : https://registry.npmjs.org
15+
16+ - name : Upgrade npm for OIDC support
17+ run : npm install -g npm@latest
18+ shell : bash
19+
20+ - name : Restore node_modules cache
21+ id : modules-cache
22+ uses : actions/cache@v4
23+ with :
24+ path : |
25+ node_modules
26+ key : ${{ runner.os }}-modules-${{ hashFiles('package-lock.json') }}
27+
28+ - name : Install dependencies
29+ if : steps.modules-cache.outputs.cache-hit != 'true'
30+ run : npm install --frozen-lockfile
31+ shell : bash
Original file line number Diff line number Diff line change 2424 with :
2525 fetch-depth : 0
2626
27- - uses : actions/setup-node@v4
28- with :
29- node-version : ' 22.x'
30-
31- - name : Install dependencies
32- run : npm install
27+ - name : Setup
28+ uses : ./.github/actions/setup
3329
3430 - name : Run TypeScript Check
3531 run : npm run typecheck
@@ -38,16 +34,16 @@ jobs:
3834 run : npm run build
3935
4036 - name : Create Release
41- uses : changesets/action@v1.5.2
37+ uses : changesets/action@v1.5.1
4238 id : release
4339 with :
4440 version : npm run version
4541 publish : npm exec changeset publish --git-tag
4642 commit : " chore(release): update version"
4743 title : " chore(release): update version"
48- cwd : ${{ github.workspace }} /wp-react-lib
44+ cwd : . /wp-react-lib
4945 env :
5046 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51- NPM_CONFIG_PROVENANCE : true
47+ NPM_CONFIG_PROVENANCE : false
5248
5349
You can’t perform that action at this time.
0 commit comments