node-publisher 3.3.1 → 3.4.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/CHANGELOG.md +14 -0
- package/README.md +17 -4
- package/bin/node-publisher-eject +0 -0
- package/bin/node-publisher-release +0 -0
- package/bin/node-publisher-setup +0 -0
- package/package.json +11 -6
- package/.github/CODEOWNERS +0 -4
- package/.github/workflows/actions.yml +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
### v3.4.0 (2026-02-13)
|
|
2
|
+
|
|
3
|
+
#### Pull requests
|
|
4
|
+
|
|
5
|
+
- [#67](https://github.com/zendesk/node-publisher/pull/67) Fix missing method ([Sune Simonsen](mailto:sune@we-knowhow.dk))
|
|
6
|
+
- [#66](https://github.com/zendesk/node-publisher/pull/66) Fix dependency security vulnerabilities ([Daria Radu](mailto:daria.radu@zendesk.com), [Sune Simonsen](mailto:sune@we-knowhow.dk))
|
|
7
|
+
|
|
8
|
+
#### Commits to master
|
|
9
|
+
|
|
10
|
+
- [v3.4.0](https://github.com/zendesk/node-publisher/commit/b8dd1babc44b361d1362ccfef4df1f67c8b21738) ([Sune Simonsen](mailto:sune@we-knowhow.dk))
|
|
11
|
+
- [Small readme tweaks](https://github.com/zendesk/node-publisher/commit/76d1195a305dc59d5d69f0b5d2b68aa86fab1ca8) ([Sune Simonsen](mailto:sune@we-knowhow.dk))
|
|
12
|
+
- [Add CODEOWNERS file with team @zendesk\/guide \(\#65\)](https://github.com/zendesk/node-publisher/commit/641ae99cec9acc2857984ea986b31975d6c43f29) ([zd-svc-gha-ci-platform](mailto:zd-svc-gha-ci-platform@zendesk.com))
|
|
13
|
+
- [Update changelog](https://github.com/zendesk/node-publisher/commit/d293180673485aa8cb4e97cef18b1d78c9034841) ([Sune Simonsen](mailto:sune@we-knowhow.dk))
|
|
14
|
+
|
|
1
15
|
### v3.3.0 (2025-09-03)
|
|
2
16
|
|
|
3
17
|
#### Pull requests
|
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ This is a configurable release automation tool for node packages inspired by [cr
|
|
|
14
14
|

|
|
15
15
|
|
|
16
16
|
# Getting started
|
|
17
|
+
|
|
17
18
|
## 1. Install the package:
|
|
18
19
|
|
|
19
20
|
```sh
|
|
@@ -50,7 +51,7 @@ For more info, read the [Prerequisites section](#prerequisites).
|
|
|
50
51
|
npm run release -- <version>
|
|
51
52
|
```
|
|
52
53
|
|
|
53
|
-
or
|
|
54
|
+
or
|
|
54
55
|
|
|
55
56
|
```sh
|
|
56
57
|
yarn release <version>
|
|
@@ -127,6 +128,7 @@ The lifecycle hooks can be redefined in the form of a configurable YAML file. Ad
|
|
|
127
128
|
* `rollback [Boolean]` - rolls back to the latest commit fetched after the `prepare` step. The rollback itself happens in the `after_failure` step and only if this flag is set to `true`.
|
|
128
129
|
|
|
129
130
|
## Default configuration
|
|
131
|
+
|
|
130
132
|
The exact configuration depends on the npm client being used and the contents of your `package.json` file. In case you use yarn, the default configuration will look like this:
|
|
131
133
|
|
|
132
134
|
```yaml
|
|
@@ -165,14 +167,24 @@ changelog:
|
|
|
165
167
|
# Development
|
|
166
168
|
|
|
167
169
|
## Install packages
|
|
170
|
+
|
|
168
171
|
```sh
|
|
169
172
|
yarn
|
|
170
173
|
```
|
|
171
174
|
|
|
172
175
|
## Release a new version
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
|
|
177
|
+
`node-publisher` is published to npm from CI via the [`npm publish`](.github/workflows/npm-publish.yml) GitHub Actions workflow — no local npm login is required.
|
|
178
|
+
|
|
179
|
+
1. **Bump the version in a PR.** Run `yarn version <patch|minor|major>` (this edits the `version` field in `package.json`; it does not create a commit or tag), or edit the field by hand. Commit, open a PR, and merge to `master`.
|
|
180
|
+
2. **Publish.** Go to **Actions → npm publish → Run workflow** and run it against `master`. This calls the shared [`zendesk/gw`](https://github.com/zendesk/gw/blob/main/.github/workflows/npm-publication.yml) reusable workflow, which builds the package and runs `yarn npm publish` to the Zendesk npmjs org.
|
|
181
|
+
|
|
182
|
+
> **Note:** publishing is restricted to the required reviewers configured on the `npm-publish` GitHub environment. Only those admins can approve and run a release.
|
|
183
|
+
|
|
184
|
+
**Prerequisites:**
|
|
185
|
+
|
|
186
|
+
- The `npm-publish` GitHub environment must exist on the repository with the `NPM_TOKEN` and `NPM_TOTP_DEVICE` secrets configured (managed via #ask-packaging).
|
|
187
|
+
- The `version` in `package.json` must be higher than the latest version already on [npmjs.com](https://www.npmjs.com/package/node-publisher) — npm rejects re-publishing an existing version.
|
|
176
188
|
|
|
177
189
|
# Contributing
|
|
178
190
|
|
|
@@ -186,6 +198,7 @@ Contributing to `node-publisher` is fairly easy, as long as the following steps
|
|
|
186
198
|
6. Mention one or more of the maintainers to get the Pull Request approved and merged
|
|
187
199
|
|
|
188
200
|
## Maintainers
|
|
201
|
+
|
|
189
202
|
- Attila Večerek ([@vecerek](https://github.com/vecerek/))
|
|
190
203
|
- Sune Simonsen ([@sunesimonsen](https://github.com/sunesimonsen/))
|
|
191
204
|
|
package/bin/node-publisher-eject
CHANGED
|
File without changes
|
|
File without changes
|
package/bin/node-publisher-setup
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-publisher",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "A configurable release automation tool inspired by create-react-app and Travis CI.",
|
|
5
5
|
"author": "Attila Večerek <avecerek@zendesk.com>",
|
|
6
6
|
"homepage": "https://github.com/zendesk/node-publisher#readme",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"bin": "./bin/node-publisher",
|
|
16
16
|
"scripts": {
|
|
17
|
+
"build": "echo 'no build step required'",
|
|
17
18
|
"coverage": "jest --coverage",
|
|
18
19
|
"lint": "eslint src/**/*.js bin/**",
|
|
19
20
|
"lint-staged": "lint-staged",
|
|
@@ -22,14 +23,18 @@
|
|
|
22
23
|
"travis": "yarn lint && yarn test"
|
|
23
24
|
},
|
|
24
25
|
"resolutions": {
|
|
25
|
-
"tmp": "^0.2.
|
|
26
|
-
"form-data": "^3.0.
|
|
26
|
+
"tmp": "^0.2.6",
|
|
27
|
+
"form-data": "^3.0.5",
|
|
28
|
+
"lodash": "^4.18.1",
|
|
29
|
+
"flatted": "^3.4.2",
|
|
30
|
+
"filelist/minimatch": "^5.1.9",
|
|
31
|
+
"brace-expansion": "^1.1.13"
|
|
27
32
|
},
|
|
28
33
|
"dependencies": {
|
|
29
34
|
"check-node-version": "3.2.0",
|
|
30
35
|
"commander": "2.15.1",
|
|
31
36
|
"inquirer": "6.5.0",
|
|
32
|
-
"js-yaml": "4.
|
|
37
|
+
"js-yaml": "4.3.0",
|
|
33
38
|
"offline-github-changelog": "4.0.0",
|
|
34
39
|
"semver": "7.7.2"
|
|
35
40
|
},
|
|
@@ -79,6 +84,6 @@
|
|
|
79
84
|
"git add"
|
|
80
85
|
]
|
|
81
86
|
},
|
|
82
|
-
"packageManager": "yarn@
|
|
87
|
+
"packageManager": "yarn@4.17.1",
|
|
83
88
|
"pre-commit": "lint-staged"
|
|
84
|
-
}
|
|
89
|
+
}
|
package/.github/CODEOWNERS
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: repo-checks
|
|
2
|
-
on: [push]
|
|
3
|
-
jobs:
|
|
4
|
-
main:
|
|
5
|
-
name: yarn-simple
|
|
6
|
-
runs-on: ubuntu-latest
|
|
7
|
-
steps:
|
|
8
|
-
- uses: zendesk/checkout@v2
|
|
9
|
-
- name: Read .nvmrc
|
|
10
|
-
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
|
|
11
|
-
id: node-read-nvmrc
|
|
12
|
-
- uses: zendesk/setup-node@v2.1.2
|
|
13
|
-
with:
|
|
14
|
-
node-version: "${{ steps.node-read-nvmrc.outputs.NVMRC }}"
|
|
15
|
-
- name: yarn test
|
|
16
|
-
run: |
|
|
17
|
-
yarn install
|
|
18
|
-
yarn travis
|
|
19
|
-
|