File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,44 +3,30 @@ name: publish
33on :
44 push :
55 tags :
6- - ' v*'
6+ - " v*"
7+
8+ permissions :
9+ id-token : write # Required for OIDC
10+ contents : read
711
812env :
913 INERTIACORE_BYPASS_ENV_CHECK : 1
1014
1115jobs :
1216 publish :
1317 runs-on : ubuntu-latest
14- permissions :
15- contents : write
16- id-token : write
1718 steps :
18- - name : Checkout code
19- uses : actions/checkout@v4
19+ - uses : actions/checkout@v6
2020
21- - name : Use Node.js
22- uses : actions/setup-node@v4
21+ - uses : actions/setup-node@v6
2322 with :
24- node-version : 24.x
25-
26- - name : Upgrade npm (trusted publishing requires >= 11.5.1)
27- run : npm install -g npm@latest
28-
29- - name : Install dependencies
30- run : npm install
31-
32- - name : Run tests
33- run : npm test
34-
35- - name : Build
36- run : npm run build
37-
38- - name : Remove any generated .npmrc (avoid conflict with trusted publishing)
39- run : rm -f .npmrc ~/.npmrc
40-
41- - name : Publish to npm
42- run : npm publish --provenance --access public
43-
23+ node-version : " 24"
24+ registry-url : " https://registry.npmjs.org"
25+ - run : npm ci
26+ - run : npm run build --if-present
27+ - run : npm test
28+ - run : rm -f .npmrc ~/.npmrc
29+ - run : npm publish
4430 - name : Create GitHub Release
4531 uses : softprops/action-gh-release@v2
4632 with :
Original file line number Diff line number Diff line change 22/dist /
33/inertia-helpers /
44/npm-debug.log
5- /package-lock.json
You can’t perform that action at this time.
0 commit comments