Skip to content

Commit e018211

Browse files
authored
Merge pull request #14 from contentauth/changesets
Fix: fix changeset usage
2 parents c22f837 + 75515d2 commit e018211

File tree

7 files changed

+71
-62
lines changed

7 files changed

+71
-62
lines changed

.changeset/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10+
"privatePackages": false,
1011
"ignore": []
1112
}

.changeset/seven-ears-hope.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@contentauth/c2pa-node": patch
3+
---
4+
5+
Change github workflow

.github/workflows/build-test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,20 @@ jobs:
1515
COREPACK_ENABLE_STRICT: 0
1616
steps:
1717
- uses: actions/checkout@v4
18+
with:
19+
filter: tree:0
20+
fetch-depth: 0
1821

1922
- name: Install Rust toolchain
2023
uses: dtolnay/rust-toolchain@stable
2124
with:
2225
toolchain: 1.88.0
2326
components: clippy
2427

25-
- name: Install pnpm
26-
run: |
27-
corepack enable
28-
corepack prepare pnpm@latest --activate
28+
- uses: pnpm/action-setup@v4
29+
name: Install pnpm
30+
with:
31+
run_install: false
2932

3033
- name: Cache Rust dependencies
3134
uses: Swatinem/rust-cache@v2
@@ -39,7 +42,7 @@ jobs:
3942
- name: Install dependencies
4043
env:
4144
SKIP_RUST_BUILD: 1
42-
run: pnpm install
45+
run: pnpm install --frozen-lockfile
4346

4447
- run: pnpm run ci
4548

.github/workflows/release.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ jobs:
1717
env:
1818
COREPACK_ENABLE_STRICT: 0
1919
steps:
20-
- name: Checkout Repo
21-
uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
21+
with:
22+
filter: tree:0
23+
fetch-depth: 0
2224

23-
- name: Install pnpm
24-
run: |
25-
corepack enable
26-
corepack prepare pnpm@latest --activate
25+
- uses: pnpm/action-setup@v4
26+
name: Install pnpm
27+
with:
28+
run_install: false
2729

2830
- name: Install Node.js
2931
uses: actions/setup-node@v4
@@ -34,13 +36,15 @@ jobs:
3436
- name: Install Dependencies
3537
env:
3638
SKIP_RUST_BUILD: 1
37-
run: pnpm install
39+
run: pnpm install --frozen-lockfile
3840

3941
- name: Create Release Pull Request or Publish to npm
4042
id: changesets
4143
uses: changesets/action@v1
4244
with:
43-
publish: pnpm release
45+
publish: pnpm ci:release
46+
commit: "chore: version packages"
47+
title: "chore: version packages"
4448
env:
4549
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4650
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -79,8 +83,10 @@ jobs:
7983
run: |
8084
echo '${{ needs.release.outputs.publishedPackages }}'
8185
82-
- name: Checkout
83-
uses: actions/checkout@v4
86+
- uses: actions/checkout@v4
87+
with:
88+
filter: tree:0
89+
fetch-depth: 0
8490

8591
- name: Install system deps (aarch64-unknown-linux-gnu)
8692
if: ${{matrix.target == 'aarch64-unknown-linux-gnu'}}
@@ -95,10 +101,10 @@ jobs:
95101
toolchain: 1.88.0
96102
target: ${{matrix.target}}
97103

98-
- name: Install pnpm
99-
run: |
100-
corepack enable
101-
corepack prepare pnpm@latest --activate
104+
- uses: pnpm/action-setup@v4
105+
name: Install pnpm
106+
with:
107+
run_install: false
102108

103109
- name: Install Node.js
104110
uses: actions/setup-node@v4
@@ -114,7 +120,7 @@ jobs:
114120
- name: Install Node.js dependencies
115121
env:
116122
SKIP_RUST_BUILD: 1
117-
run: pnpm install
123+
run: pnpm install --frozen-lockfile
118124

119125
- name: Build library for aarch64-unknown-linux-gnu
120126
if: ${{matrix.target == 'aarch64-unknown-linux-gnu'}}

js-src/IdentityAssertion.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
/* eslint-disable @typescript-eslint/no-non-null-assertion */
1515

16-
// Note: We will dynamically import modules after establishing mocks
1716
import type {
1817
JsCallbackSignerConfig,
1918
DestinationBufferAsset,

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"build:ts": "tsc -b && cpy index.node dist && cpy index.node js-src && cpy --flat js-src/types.d.ts dist/types",
2424
"changeset:publish": "changeset publish",
2525
"ci": "run-s build:rust-debug build:ts test",
26+
"ci:release": "pnpm run build && changeset tag && pnpm publish --access=public",
2627
"clean": "rimraf dist generated target",
2728
"cross": "pnpm run cross-build --release",
2829
"cross-build": "cross build --message-format=json-render-diagnostics > cross.log",
@@ -38,7 +39,7 @@
3839
"author": "Colin Murphy <[email protected]>",
3940
"license": "MIT",
4041
"devDependencies": {
41-
"@changesets/cli": "^2.29.5",
42+
"@changesets/cli": "^2.29.6",
4243
"@contentauth/c2pa-types": "^0.2.1",
4344
"@eslint/js": "^9.33.0",
4445
"@neon-rs/cli": "0.1.82",

pnpm-lock.yaml

Lines changed: 34 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)