Skip to content

Commit 754da3f

Browse files
committed
fix: add provenance attestation
1 parent 4c815d9 commit 754da3f

3 files changed

Lines changed: 27 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
id-token: write
10+
contents: write
11+
issues: write
12+
813
jobs:
914
release:
1015
name: Release
@@ -16,10 +21,11 @@ jobs:
1621
- name: Use pnpm
1722
uses: pnpm/action-setup@v3
1823

19-
- name: Use Node.js 22.x
24+
- name: Use Node.js 24.x
2025
uses: actions/setup-node@v4
2126
with:
22-
node-version: 22
27+
node-version: 24
28+
registry-url: 'https://registry.npmjs.org'
2329
cache: 'pnpm'
2430

2531
- name: Install Dependencies
@@ -32,13 +38,12 @@ jobs:
3238
run: pnpm build
3339

3440
- name: Semantic Release
35-
uses: cycjimmy/semantic-release-action@v3
41+
uses: cycjimmy/semantic-release-action@v5
3642
env:
3743
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3944
id: semantic
4045
with:
41-
semantic_version: 19.0.5
46+
semantic_version: 25
4247
extra_plugins: |
4348
@semantic-release/changelog@6.0
4449
@semantic-release/git@10.0

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "@soliantconsulting/create-react-app",
33
"version": "2.12.4",
44
"description": "Create a React App",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/soliantconsulting/create-react-app.git"
8+
},
59
"type": "module",
610
"author": "Soliant Consulting",
711
"license": "MIT",

skeleton/src/mutations/article.ts.liquid

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ export const useCreateArticleMutation = (): UseMutationResult<void, Error, Creat
2121
mutationFn: async (values) => {
2222
const response = await fetch(apiUrl("/articles"), {
2323
method: "POST",
24-
body: JSON.stringify({ data: values }),
24+
body: JSON.stringify({
25+
data: {
26+
type: "article",
27+
...values,
28+
},
29+
}),
2530
headers: {
2631
"Content-Type": "application/vnd.api+json",
2732
},
@@ -52,7 +57,13 @@ export const useUpdateArticleMutation = (): UseMutationResult<void, Error, Updat
5257

5358
const response = await fetch(apiUrl(`/articles/${id}`), {
5459
method: "PUT",
55-
body: JSON.stringify(rest),
60+
body: JSON.stringify({
61+
data: {
62+
type: "article",
63+
id,
64+
...rest,
65+
},
66+
}),
5667
headers: {
5768
"Content-Type": "application/vnd.api+json",
5869
},

0 commit comments

Comments
 (0)