@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.
- package/README.md +7 -2
- package/index.js +14 -0
- package/package.json +16 -4
package/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# tagpr-scripts-sandbox
|
|
2
2
|
|
|
3
|
-
|
|
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.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
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
|
+
}
|