Skip to content

Commit 42fccb6

Browse files
committed
follow the docs
1 parent e31f37c commit 42fccb6

3 files changed

Lines changed: 3846 additions & 29 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,30 @@ name: publish
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
7+
8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
711

812
env:
913
INERTIACORE_BYPASS_ENV_CHECK: 1
1014

1115
jobs:
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:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
/dist/
33
/inertia-helpers/
44
/npm-debug.log
5-
/package-lock.json

0 commit comments

Comments
 (0)