symcrys 0.1.0 → 0.1.1
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/README.md +18 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/README.md
CHANGED
|
@@ -34,12 +34,12 @@ birss-app.
|
|
|
34
34
|
|
|
35
35
|
## Use
|
|
36
36
|
|
|
37
|
-
Not yet on npm. Each release on GitHub carries the package as `symcrys-X.Y.Z.tgz`:
|
|
38
|
-
|
|
39
37
|
```bash
|
|
40
|
-
npm install
|
|
38
|
+
npm install symcrys
|
|
41
39
|
```
|
|
42
40
|
|
|
41
|
+
Each release on GitHub also carries the package as `symcrys-X.Y.Z.tgz`.
|
|
42
|
+
|
|
43
43
|
```ts
|
|
44
44
|
import { VERSION } from 'symcrys';
|
|
45
45
|
```
|
|
@@ -77,7 +77,7 @@ module (`foo.ts`, `foo.test.ts`). Working rules for contributors, human or agent
|
|
|
77
77
|
1. Release PR: version in `package.json`, `package-lock.json` (`npm install --package-lock-only`)
|
|
78
78
|
and `src/version.ts`; move the `Unreleased` entries of `CHANGELOG.md` under
|
|
79
79
|
`## [X.Y.Z] - YYYY-MM-DD` and update the link definitions at the bottom (`[Unreleased]` compares
|
|
80
|
-
`vX.Y.Z...HEAD`, `[X.Y.Z]`
|
|
80
|
+
`vX.Y.Z...HEAD`, `[X.Y.Z]` compares the previous tag with `vX.Y.Z`).
|
|
81
81
|
2. After the merge: `git fetch origin`, check that `origin/main` is the merge commit of the release PR,
|
|
82
82
|
then `git tag -a vX.Y.Z -m "symcrys X.Y.Z" origin/main && git push origin vX.Y.Z`.
|
|
83
83
|
3. The tag runs `.github/workflows/release.yml`: it checks that the tag matches `package.json`,
|
|
@@ -85,10 +85,20 @@ module (`foo.ts`, `foo.test.ts`). Working rules for contributors, human or agent
|
|
|
85
85
|
`npm pack` tarball attached. Check that the workflow is green and the release carries
|
|
86
86
|
`symcrys-X.Y.Z.tgz`.
|
|
87
87
|
|
|
88
|
-
**npm
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
**npm.** The `npm` job of `release.yml` submits the same tarball to npm as a staged version
|
|
89
|
+
(trusted publishing, no token). Its log shows the tarball's shasum and integrity and the stage id. The version
|
|
90
|
+
goes live only after approval with two-factor authentication (npm 11.15 or later):
|
|
91
|
+
|
|
92
|
+
1. `npm stage list symcrys`, then `npm stage view <stage-id>`: version and shasum must match the log
|
|
93
|
+
of the `npm` job (or "Staged Packages" on npmjs.com).
|
|
94
|
+
2. `npm stage approve <stage-id>`.
|
|
95
|
+
3. `npm view symcrys` shows the version as `latest`.
|
|
96
|
+
|
|
97
|
+
If staging fails, re-run the `npm` job (a staged version cannot be staged twice, so check
|
|
98
|
+
`npm stage list` first). An authentication error usually means the trusted publisher on npmjs.com
|
|
99
|
+
does not match (repository, workflow `release.yml`); the stage step runs with `--loglevel verbose`,
|
|
100
|
+
so its log shows the OIDC exchange. As a fallback, stage the release asset by hand:
|
|
101
|
+
`npm stage publish ./symcrys-X.Y.Z.tgz` (then without provenance, which only CI can attest).
|
|
92
102
|
|
|
93
103
|
## Licence
|
|
94
104
|
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "symcrys",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Crystallographic symmetry calculations: point groups (crystallographic and magnetic), their settings, symbols and properties, and property tensors. TypeScript library without dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"crystallography",
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Version of symcrys. Kept equal to `version` in package.json (checked by version.test.ts). */
|
|
2
|
-
export const VERSION = '0.1.
|
|
2
|
+
export const VERSION = '0.1.1';
|