@kanf/sandbox 0.0.0-stage → 0.1.8

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.
Files changed (3) hide show
  1. package/README.md +7 -2
  2. package/index.js +14 -0
  3. package/package.json +16 -4
package/README.md CHANGED
@@ -1,3 +1,8 @@
1
- # Temporary Holding Version
1
+ # tagpr-scripts-sandbox
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ kan/tagpr-scripts の reusable workflow(`.github/workflows/tagpr.yml`、`tagpr-label.yml`、
4
+ `publish-npm.yml`)を、別の repo から呼んで確かめるための repo(kan/tagpr-scripts#6、#15)。
5
+
6
+ npm に [@kanf/sandbox](https://www.npmjs.com/package/@kanf/sandbox) として出す。これも
7
+ `publish-npm.yml` を確かめるためのパッケージで、使うためのものではない。npmjs.com の Trusted
8
+ Publisher には `.github/workflows/publish.yml` を登録してある。
package/index.js ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * kan/tagpr-scripts の npm の publish の workflow(`publish-npm.yml`)を確かめるためのパッケージ。
3
+ * 使うためのものではない。publish したものの中身が手元と同じかを、版の文字列で見分けられるように
4
+ * するだけの関数を置く。
5
+ */
6
+
7
+ /**
8
+ * プレリリースの版(`1.2.3-rc.1` など)か。
9
+ * @param {string} version
10
+ * @returns {boolean}
11
+ */
12
+ export function isPrerelease(version) {
13
+ return /^\d+\.\d+\.\d+-/.test(version);
14
+ }
package/package.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "name": "@kanf/sandbox",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.8",
4
+ "description": "Test package for the npm publish workflow of kan/tagpr-scripts. Not for use.",
5
+ "license": "ISC",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/kan/tagpr-scripts-sandbox.git"
9
+ },
10
+ "type": "module",
11
+ "exports": "./index.js",
12
+ "files": [
13
+ "index.js"
14
+ ],
15
+ "scripts": {
16
+ "test": "node --test index.test.js"
17
+ }
18
+ }