@amazon-devices/zz-internal-test-npm-staged-publish 0.0.0-stage → 0.0.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 +31 -2
- package/index.js +11 -0
- package/package.json +23 -4
package/README.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @amazon-devices/zz-internal-test-npm-staged-publish
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**INTERNAL TEST FIXTURE. Never depend on this package.** Every version is
|
|
4
|
+
deprecated on npmjs.com after its test run.
|
|
5
|
+
|
|
6
|
+
This package exists only to test npm staged publishing
|
|
7
|
+
(`npm stage publish` + manual 2FA approval on npmjs.com) end to end in the
|
|
8
|
+
`VegaSDKNPMPublishTest` pipeline. It is published in the `@amazon-devices`
|
|
9
|
+
scope (same org, settings and approval path as production) under a name
|
|
10
|
+
that sorts last (`zz-`) and clearly marks it as an internal test package.
|
|
11
|
+
|
|
12
|
+
Tracking: PROJVEGA-460307.
|
|
13
|
+
|
|
14
|
+
## How it is used
|
|
15
|
+
|
|
16
|
+
1. `brazil-build` (NpmPrettyMuch) produces
|
|
17
|
+
`brazil-npm-registry/@amazon-devices/zz-internal-test-npm-staged-publish/<version>.tgz`.
|
|
18
|
+
2. The `VegaSDKNPMPublishTest` pipeline runs
|
|
19
|
+
`Kepler-CLI-Native-NpmPublisher-3P` profile `dummy_to_npmjs_stage`:
|
|
20
|
+
- `--run-mode stage` stages the version on npmjs.com,
|
|
21
|
+
- an oncall approves it on npmjs.com (YubiKey) and then the pipeline
|
|
22
|
+
manual approval step,
|
|
23
|
+
- `--run-mode finalize` verifies it is live and runs post-publish steps.
|
|
24
|
+
3. After the test, deprecate the version on npmjs.com with a
|
|
25
|
+
"internal test fixture, do not use" message.
|
|
26
|
+
|
|
27
|
+
## Bumping the version (required for every test run)
|
|
28
|
+
|
|
29
|
+
npm never lets a version number be reused, even if the staged version was
|
|
30
|
+
rejected. **Bump `version` in `package.json` (and the two `version` fields in
|
|
31
|
+
`package-lock.json`, or run `npm version patch --no-git-tag-version`) in every
|
|
32
|
+
test CR** (for example `0.0.1` -> `0.0.2`) before running the pipeline again.
|
package/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* INTERNAL TEST FIXTURE for npm staged publishing (PROJVEGA-460307).
|
|
5
|
+
* Never depend on this package; every version is deprecated after its test. It exists only so the VegaSDKNPMPublishTest
|
|
6
|
+
* pipeline has something safe to stage and approve on npmjs.com.
|
|
7
|
+
*/
|
|
8
|
+
module.exports = {
|
|
9
|
+
TEST_FIXTURE: true,
|
|
10
|
+
PURPOSE: "npm staged publishing test fixture for VegaSDKNPMPublishTest",
|
|
11
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amazon-devices/zz-internal-test-npm-staged-publish",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "INTERNAL TEST FIXTURE for npm staged publishing (VegaSDKNPMPublishTest). Never depend on this package; it is deprecated after each test.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://code.amazon.com/packages/VegaSDKNpmStagingTestDummy"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"index.js",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "node index.js",
|
|
20
|
+
"test": "node test.js"
|
|
21
|
+
},
|
|
22
|
+
"npm-pretty-much": {
|
|
23
|
+
"runTest": "always"
|
|
24
|
+
}
|
|
25
|
+
}
|