@releaseway/npm-actions-fixture 0.0.11-native.0 → 0.0.13-native.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.releaseway/native.json +2 -2
- package/README.md +25 -2
- package/package.json +3 -2
package/.releaseway/native.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repository": "releaseway/npm-actions-fixture",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"tag": "native-v0.0.
|
|
3
|
+
"version": "0.0.13-native.0",
|
|
4
|
+
"tag": "native-v0.0.13-native.0",
|
|
5
5
|
"targets": {
|
|
6
6
|
"linux-x64-gnu": {
|
|
7
7
|
"asset": "npm-actions-native-fixture_linux_x64.tar.gz",
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Permanent integration fixture for releaseway/npm-actions.
|
|
|
4
4
|
|
|
5
5
|
This package exercises real npm registry and GitHub Release behavior: registry-first version selection, Trusted Publishing OIDC, staged submissions, and native installation and execution. It is not intended for application dependencies or production use.
|
|
6
6
|
|
|
7
|
-
The committed package remains an ordinary non-native fixture. Fixture-specific native bin metadata and the legacy package-json version scenario are prepared locally; tag-derived scenarios preserve the source version. Publication channels are declared as stable `latest` and prerelease `next` in Releaseway policy, without rewriting `publishConfig.tag`. Both workflows accept a full `action-ref` SHA, verify the checked-out SHA and run `./npm-action`.
|
|
7
|
+
The committed package remains an ordinary non-native fixture. Fixture-specific native bin metadata and the legacy package-json version scenario are prepared locally; tag-derived scenarios preserve the source version. Publication channels are declared as stable `latest` and prerelease `next` in Releaseway policy, without rewriting `publishConfig.tag`. Both workflows accept a full `action-ref` SHA, default to the verified `releaseway/npm-actions v0.5.1` candidate, verify the checked-out SHA and run `./npm-action`.
|
|
8
8
|
|
|
9
9
|
## Result contract
|
|
10
10
|
|
|
@@ -27,6 +27,16 @@ The bootstrap credential is no longer part of the fixture flow.
|
|
|
27
27
|
|
|
28
28
|
## Staged fixture
|
|
29
29
|
|
|
30
|
+
For the complete preparation/publication flow, dispatch `publish.yml` with
|
|
31
|
+
`prepare-release=true`, `version-source=git-tag`, `expected-state=staged`, and the
|
|
32
|
+
planned `fixture-version` (initially `0.0.12-fixture.0`). The committed release and
|
|
33
|
+
npm policies select `prepared-npm-v` tags and `next`. Releaseway plans the version,
|
|
34
|
+
the fixture checks that expectation, then Releaseway resumes the saved plan and
|
|
35
|
+
atomically pushes the marker commit and tag. npm-actions receives the prepared
|
|
36
|
+
commit through its JavaScript action input and packs its tag-derived version.
|
|
37
|
+
This path does not run the metadata preparation script or rewrite `package.json`.
|
|
38
|
+
Evidence retains the workflow source SHA and separately records the prepared SHA.
|
|
39
|
+
|
|
30
40
|
`publish.yml` keeps the committed Releaseway policy at its staged default. It accepts `fixture-version` in the form `0.0.N-fixture.M` and `expected-state` as either `staged` or `already-published`.
|
|
31
41
|
|
|
32
42
|
The defaults use `0.0.5-fixture.0` with `already-published` to exercise version lookup without a new submission. To exercise actual staged publication, choose a fresh fixture version and `expected-state=staged`. Approval remains a maintainer operation. A pending staged version is not an already-public version, and a conflicting submission is expected to fail.
|
|
@@ -40,7 +50,7 @@ The defaults use `0.0.5-fixture.0` with `already-published` to exercise version
|
|
|
40
50
|
- Workflow filename: `direct.yml`
|
|
41
51
|
- Allowed action: enable `Allow npm publish`
|
|
42
52
|
|
|
43
|
-
The inputs default to `fixture-version=0.0.
|
|
53
|
+
The inputs default to `fixture-version=0.0.12-native.0` and `expected-state=already-published`. For this scenario the workflow skips Release creation and source-commit comparison, invokes npm-actions to verify the version is already public, then installs and executes the published CLI. It may run from a later source commit than the original Release. It does not republish the historical package or test a newly generated runtime.
|
|
44
54
|
|
|
45
55
|
To publish a new native fixture, select a fresh `0.0.N-native.M` version and `expected-state=published`. Repository release immutability must be enabled. Product steps build the deterministic Linux x64 asset. `releaseway/actions/prepare` binds the same-commit `native-v<version>` tag and `releaseway/actions` publishes or resumes its immutable prerelease with verified asset digests, before npm-actions publishes to `next`. The action prepares only an unpublished candidate and confirms its exact SHA-512 in the live registry.
|
|
46
56
|
|
|
@@ -50,6 +60,19 @@ The fixture asset is `native/fixture.sh`, packed into `npm-actions-native-fixtur
|
|
|
50
60
|
|
|
51
61
|
Cross-platform installed-wrapper behavior is covered in the npm-actions repository by the runtime/install matrix on Linux x64/arm64, macOS x64/arm64, and Windows x64/arm64. This real-registry native fixture targets Linux x64 to exercise GitHub Release provenance, npm OIDC publication, installation, first-run download, and cache reuse.
|
|
52
62
|
|
|
63
|
+
## Native command aliases
|
|
64
|
+
|
|
65
|
+
For an alias-capable candidate, dispatch `direct.yml` with its full `action-ref`,
|
|
66
|
+
a fresh native version, `expected-state=published`, and `command-aliases=true`.
|
|
67
|
+
Preparation maps both `npm-actions-native-fixture` and `rw-npm-fixture` to the same
|
|
68
|
+
generated launcher. Every Node 22/24/26 consumer executes both names, then repeats
|
|
69
|
+
them against one read-only cache. Successful evidence records the alias names.
|
|
70
|
+
|
|
71
|
+
The alias option defaults to `false` during candidate adoption, so historical
|
|
72
|
+
packages and the existing stable action remain usable. Set it to `false` for an
|
|
73
|
+
older published fixture without aliases. Staged non-native fixtures do not use this
|
|
74
|
+
option. A historical lookup still cannot certify new candidate packaging.
|
|
75
|
+
|
|
53
76
|
## Candidate acceptance
|
|
54
77
|
|
|
55
78
|
Supply the candidate's full 40-character `action-ref`, a fresh version and fresh
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@releaseway/npm-actions-fixture",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13-native.0",
|
|
4
4
|
"description": "Integration fixture for releaseway/npm-actions. Not for production use.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./index.js",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
17
|
"bin": {
|
|
18
|
-
"npm-actions-native-fixture": "bin/npm-actions-native-fixture"
|
|
18
|
+
"npm-actions-native-fixture": "bin/npm-actions-native-fixture",
|
|
19
|
+
"rw-npm-fixture": "bin/npm-actions-native-fixture"
|
|
19
20
|
}
|
|
20
21
|
}
|