@anolilab/semantic-release-preset 2.2.0 → 3.0.0
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/.releaserc-with-npm.json +1 -1
- package/CHANGELOG.md +20 -0
- package/README.md +172 -0
- package/package.json +15 -14
package/.releaserc-with-npm.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## @anolilab/semantic-release-preset [3.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/semantic-release-preset@2.2.1...@anolilab/semantic-release-preset@3.0.0) (2023-06-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### ⚠ BREAKING CHANGES
|
|
5
|
+
|
|
6
|
+
* Changed the package to support cjs and mjs, so the type module was removed
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* switched js to ts, created a new package-utils package ([5477591](https://github.com/anolilab/javascript-style-guide/commit/5477591aa46d878b8535ff8503384e27ca537a7f))
|
|
11
|
+
|
|
12
|
+
## @anolilab/semantic-release-preset [2.2.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/semantic-release-preset@2.2.0...@anolilab/semantic-release-preset@2.2.1) (2023-05-25)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* changed @semrel-extra/npm to @semantic-release/npm because of esm support ([f76c2d4](https://github.com/anolilab/javascript-style-guide/commit/f76c2d4349acc74498ea75f123d2718025515708))
|
|
18
|
+
* switched @semrel-extra/npm to @semantic-release/npm and added new example to the readme ([040da7b](https://github.com/anolilab/javascript-style-guide/commit/040da7bd69e5d9fd8a830b03cc59abdecd7dd3fc))
|
|
19
|
+
* updated package deps ([34e24a0](https://github.com/anolilab/javascript-style-guide/commit/34e24a097c282f0b032a283225a1d91439b3f08e))
|
|
20
|
+
|
|
1
21
|
## @anolilab/semantic-release-preset [2.2.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/semantic-release-preset@2.1.0...@anolilab/semantic-release-preset@2.2.0) (2023-01-14)
|
|
2
22
|
|
|
3
23
|
|
package/README.md
CHANGED
|
@@ -142,6 +142,9 @@ What you’ll want to do next is configure a [GitHub workflow](https://docs.git
|
|
|
142
142
|
|
|
143
143
|
Here’s an example workflow configuration that runs your tests and publishes a new version for new commits on `main` branch:
|
|
144
144
|
|
|
145
|
+
<details>
|
|
146
|
+
<summary>Single semantic-release example with yarn</summary>
|
|
147
|
+
|
|
145
148
|
```yaml
|
|
146
149
|
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
|
|
147
150
|
|
|
@@ -250,6 +253,175 @@ jobs:
|
|
|
250
253
|
GIT_COMMITTER_EMAIL: "github-actions[bot]@users.noreply.github.com"
|
|
251
254
|
run: "yarn semantic-release"
|
|
252
255
|
```
|
|
256
|
+
</details>
|
|
257
|
+
|
|
258
|
+
To release multi package repositories, you need to install `@qiwi/multi-semantic-release` and `semantic-release`.
|
|
259
|
+
|
|
260
|
+
<details>
|
|
261
|
+
<summary>Multi package semantic-release example with pnpm</summary>
|
|
262
|
+
|
|
263
|
+
```yaml
|
|
264
|
+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
|
|
265
|
+
|
|
266
|
+
name: "Semantic Release"
|
|
267
|
+
|
|
268
|
+
on: # yamllint disable-line rule:truthy
|
|
269
|
+
push:
|
|
270
|
+
branches:
|
|
271
|
+
- "([0-9])?(.{+([0-9]),x}).x"
|
|
272
|
+
- "main"
|
|
273
|
+
- "next"
|
|
274
|
+
- "next-major"
|
|
275
|
+
- "alpha"
|
|
276
|
+
- "beta"
|
|
277
|
+
|
|
278
|
+
# Enable this to use the github packages
|
|
279
|
+
# yamllint disable-line rule:comments
|
|
280
|
+
#env:
|
|
281
|
+
# package: "@${{ github.repository }}"
|
|
282
|
+
# registry_url: "https://npm.pkg.github.com"
|
|
283
|
+
# scope: "${{ github.repository_owner }}"
|
|
284
|
+
|
|
285
|
+
jobs:
|
|
286
|
+
test:
|
|
287
|
+
strategy:
|
|
288
|
+
matrix:
|
|
289
|
+
os: ["ubuntu-latest"]
|
|
290
|
+
node_version: ["16", "18", "19", "20"]
|
|
291
|
+
fail-fast: false
|
|
292
|
+
|
|
293
|
+
name: "Build & Unit Test: node-${{ matrix.node_version }}, ${{ matrix.os }}"
|
|
294
|
+
|
|
295
|
+
runs-on: "${{ matrix.os }}"
|
|
296
|
+
|
|
297
|
+
steps:
|
|
298
|
+
- name: "Git checkout"
|
|
299
|
+
uses: "actions/checkout@v3"
|
|
300
|
+
env:
|
|
301
|
+
GIT_COMMITTER_NAME: "GitHub Actions Shell"
|
|
302
|
+
GIT_AUTHOR_NAME: "GitHub Actions Shell"
|
|
303
|
+
EMAIL: "github-actions[bot]@users.noreply.github.com"
|
|
304
|
+
|
|
305
|
+
- uses: "pnpm/action-setup@v2.2.4"
|
|
306
|
+
with:
|
|
307
|
+
version: 8
|
|
308
|
+
run_install: false
|
|
309
|
+
|
|
310
|
+
- name: "Set node version to ${{ matrix.node_version }}"
|
|
311
|
+
uses: "actions/setup-node@v3"
|
|
312
|
+
with:
|
|
313
|
+
node-version: "${{ matrix.node_version }}"
|
|
314
|
+
cache: "pnpm"
|
|
315
|
+
|
|
316
|
+
- name: "Check npm version"
|
|
317
|
+
run: "npm -v"
|
|
318
|
+
env:
|
|
319
|
+
SKIP_CHECK: "true"
|
|
320
|
+
|
|
321
|
+
- name: "Install packages"
|
|
322
|
+
run: "pnpm install --frozen-lockfile"
|
|
323
|
+
env:
|
|
324
|
+
SKIP_CHECK: "true"
|
|
325
|
+
|
|
326
|
+
- name: "Build"
|
|
327
|
+
run: "pnpm run build:packages"
|
|
328
|
+
|
|
329
|
+
- name: "test and coverage"
|
|
330
|
+
run: "pnpm run test:coverage"
|
|
331
|
+
|
|
332
|
+
semantic-release:
|
|
333
|
+
name: "Semantic Release"
|
|
334
|
+
|
|
335
|
+
runs-on: "ubuntu-latest"
|
|
336
|
+
|
|
337
|
+
needs: ["test", "eslint"]
|
|
338
|
+
|
|
339
|
+
steps:
|
|
340
|
+
- name: "Git checkout"
|
|
341
|
+
uses: "actions/checkout@v3"
|
|
342
|
+
with:
|
|
343
|
+
fetch-depth: 0
|
|
344
|
+
persist-credentials: false
|
|
345
|
+
env:
|
|
346
|
+
GIT_COMMITTER_NAME: "GitHub Actions Shell"
|
|
347
|
+
GIT_AUTHOR_NAME: "GitHub Actions Shell"
|
|
348
|
+
EMAIL: "github-actions[bot]@users.noreply.github.com"
|
|
349
|
+
|
|
350
|
+
- uses: "pnpm/action-setup@v2.2.4"
|
|
351
|
+
with:
|
|
352
|
+
version: 8
|
|
353
|
+
run_install: false
|
|
354
|
+
|
|
355
|
+
- name: "Use Node.js 16.x"
|
|
356
|
+
uses: "actions/setup-node@v3"
|
|
357
|
+
with:
|
|
358
|
+
node-version: "16.x"
|
|
359
|
+
cache: "pnpm"
|
|
360
|
+
|
|
361
|
+
- name: "Check npm version"
|
|
362
|
+
run: "npm -v"
|
|
363
|
+
env:
|
|
364
|
+
SKIP_CHECK: "true"
|
|
365
|
+
|
|
366
|
+
- name: "Install packages"
|
|
367
|
+
run: "pnpm install --frozen-lockfile"
|
|
368
|
+
|
|
369
|
+
- name: "Build Production"
|
|
370
|
+
run: "pnpm run build:prod:packages"
|
|
371
|
+
|
|
372
|
+
- name: "npm v8.5+ requires workspaces-update to be set to false"
|
|
373
|
+
run: "echo 'workspaces-update=false' >> .npmrc"
|
|
374
|
+
|
|
375
|
+
- name: "Semantic Release"
|
|
376
|
+
if: "success()"
|
|
377
|
+
env:
|
|
378
|
+
GITHUB_TOKEN: "${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}"
|
|
379
|
+
NPM_TOKEN: "${{ secrets.NPM_AUTH_TOKEN }}"
|
|
380
|
+
GIT_AUTHOR_NAME: "github-actions-shell"
|
|
381
|
+
GIT_AUTHOR_EMAIL: "github-actions[bot]@users.noreply.github.com"
|
|
382
|
+
GIT_COMMITTER_NAME: "github-actions-shell"
|
|
383
|
+
GIT_COMMITTER_EMAIL: "github-actions[bot]@users.noreply.github.com"
|
|
384
|
+
run: "pnpm multi-semantic-release"
|
|
385
|
+
|
|
386
|
+
pnpm-lock-update:
|
|
387
|
+
name: "pnpm-lock.yaml update"
|
|
388
|
+
|
|
389
|
+
runs-on: "ubuntu-latest"
|
|
390
|
+
|
|
391
|
+
needs: ["semantic-release"]
|
|
392
|
+
|
|
393
|
+
steps:
|
|
394
|
+
- name: "Git checkout"
|
|
395
|
+
uses: "actions/checkout@v3"
|
|
396
|
+
with:
|
|
397
|
+
fetch-depth: 2
|
|
398
|
+
env:
|
|
399
|
+
GIT_COMMITTER_NAME: "GitHub Actions Shell"
|
|
400
|
+
GIT_AUTHOR_NAME: "GitHub Actions Shell"
|
|
401
|
+
EMAIL: "github-actions[bot]@users.noreply.github.com"
|
|
402
|
+
|
|
403
|
+
- uses: "pnpm/action-setup@v2.2.4"
|
|
404
|
+
with:
|
|
405
|
+
version: 8
|
|
406
|
+
|
|
407
|
+
- name: "Use Node.js 16.x"
|
|
408
|
+
uses: "actions/setup-node@v3"
|
|
409
|
+
with:
|
|
410
|
+
node-version: "16.x"
|
|
411
|
+
|
|
412
|
+
- name: "Update pnpm lock"
|
|
413
|
+
run: "pnpm install --no-frozen-lockfile"
|
|
414
|
+
|
|
415
|
+
- name: "Commit modified files"
|
|
416
|
+
uses: "stefanzweifel/git-auto-commit-action@v4.16.0"
|
|
417
|
+
with:
|
|
418
|
+
commit_message: "chore: updated pnpm-lock.yaml"
|
|
419
|
+
commit_author: "prisis <d.bannert@anolilab.de>"
|
|
420
|
+
commit_user_email: "d.bannert@anolilab.de"
|
|
421
|
+
commit_user_name: "prisis"
|
|
422
|
+
branch: "${{ github.head_ref }}"
|
|
423
|
+
```
|
|
424
|
+
</details>
|
|
253
425
|
|
|
254
426
|
## Note on GitHub protected branches
|
|
255
427
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anolilab/semantic-release-preset",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Anolilab Coding Standard for semantic-release.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -48,32 +48,33 @@
|
|
|
48
48
|
"postinstall": "node lib/postinstall.js"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@commitlint/cli": "^17.
|
|
52
|
-
"@commitlint/config-conventional": "^17.
|
|
53
|
-
"@commitlint/core": "^17.
|
|
54
|
-
"@semantic-release/changelog": "^6.0.
|
|
55
|
-
"@semantic-release/commit-analyzer": "^
|
|
51
|
+
"@commitlint/cli": "^17.6.5",
|
|
52
|
+
"@commitlint/config-conventional": "^17.6.5",
|
|
53
|
+
"@commitlint/core": "^17.6.5",
|
|
54
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
55
|
+
"@semantic-release/commit-analyzer": "^10.0.1",
|
|
56
56
|
"@semantic-release/exec": "^6.0.3",
|
|
57
57
|
"@semantic-release/git": "^10.0.1",
|
|
58
|
-
"@semantic-release/github": "^
|
|
59
|
-
"@semantic-release/
|
|
60
|
-
"@
|
|
61
|
-
"commitizen": "^4.
|
|
62
|
-
"conventional-changelog-conventionalcommits": "^
|
|
58
|
+
"@semantic-release/github": "^9.0.3",
|
|
59
|
+
"@semantic-release/npm": "^10.0.4",
|
|
60
|
+
"@semantic-release/release-notes-generator": "^11.0.3",
|
|
61
|
+
"commitizen": "^4.3.0",
|
|
62
|
+
"conventional-changelog-conventionalcommits": "^6.0.0",
|
|
63
63
|
"cz-conventional-changelog": "^3.3.0",
|
|
64
64
|
"semantic-release-conventional-commits": "^3.0.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"semantic-release": "^
|
|
67
|
+
"semantic-release": "^21.0.4"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"semantic-release": "^
|
|
70
|
+
"semantic-release": "^21.0.0"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=16"
|
|
74
74
|
},
|
|
75
75
|
"publishConfig": {
|
|
76
|
-
"access": "public"
|
|
76
|
+
"access": "public",
|
|
77
|
+
"provenance": true
|
|
77
78
|
},
|
|
78
79
|
"pnpm": {
|
|
79
80
|
"overrides": {
|