You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-14Lines changed: 5 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,30 +182,23 @@ This repo publishes with OIDC in [`.github/workflows/publishment.yml`](.github/w
182
182
183
183
### GitHub Actions with `@jscutlery/semver` <a name="github-actions-with-jscutlerysemver"></a> <!-- omit in toc -->
184
184
185
-
[`@jscutlery/semver`](https://github.com/jscutlery/semver) bumps the version from your commits and can chain **build**, **deploy**, and **GitHub releases** via `postTargets`. Configure a `version` target on your library (see [this repo's `project.json`](https://github.com/bikecoders/ngx-deploy-npm/blob/main/packages/ngx-deploy-npm/project.json)):
185
+
[`@jscutlery/semver`](https://github.com/jscutlery/semver) bumps the version from your commits and can chain **build**and **deploy** via `postTargets`. Configure a `version` target on your library (see [this repo's `project.json`](https://github.com/bikecoders/ngx-deploy-npm/blob/main/packages/ngx-deploy-npm/project.json)):
186
186
187
187
```json
188
-
"github": {
189
-
"executor": "@jscutlery/semver:github",
190
-
"options": {
191
-
"tag": "{tag}",
192
-
"notes": "{notes}"
193
-
}
194
-
},
195
188
"version": {
196
189
"executor": "@jscutlery/semver:version",
197
190
"options": {
198
-
"postTargets": ["build", "deploy", "github"]
191
+
"postTargets": ["build", "deploy"]
199
192
}
200
193
}
201
194
```
202
195
203
-
In CI, a single command bumps, builds, publishes to npm, and creates a GitHub release:
196
+
In CI, a single command bumps, builds, and publishes:
204
197
205
198
```yaml
206
199
permissions:
207
200
id-token: write # omit if using NPM_TOKEN instead (see below)
208
-
contents: write # required for @jscutlery/semver:github
201
+
contents: read
209
202
210
203
steps:
211
204
- uses: actions/checkout@v6
@@ -216,8 +209,6 @@ steps:
216
209
node-version: '22'
217
210
- run: npm ci
218
211
- run: npx nx version your-library
219
-
env:
220
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
221
212
```
222
213
223
214
### GitHub Actions with an NPM token <a name="github-actions-with-an-npm-token"></a> <!-- omit in toc -->
@@ -469,7 +460,7 @@ We strongly recommend using [`@jscutlery/semver`](https://github.com/jscutlery/s
469
460
470
461
For more information go to semver's [documentation](https://github.com/jscutlery/semver#triggering-executors-post-release)
471
462
472
-
We use `@jscutlery/semver` here on `ngx-deploy-npm` to generate the package's next version, create a [GitHub release](https://github.com/bikecoders/ngx-deploy-npm/releases), and publish that version to npm with `ngx-deploy-npm`. Yes, it uses itself — see [ngx-deploy-npm/project.json](https://github.com/bikecoders/ngx-deploy-npm/blob/main/packages/ngx-deploy-npm/project.json).
463
+
We use `@jscutlery/semver` here on `ngx-deploy-npm` to generate the package's next version, and we use `ngx-deploy-npm` to publish that version to NPM. Yes, it uses itself, take a look by yourself [ngx-deploy-npm/project.json](https://github.com/bikecoders/ngx-deploy-npm/blob/main/packages/ngx-deploy-npm/project.json#L55-L67)
473
464
474
465
### One library per install run <!-- omit in toc -->
0 commit comments