Skip to content

Commit ae55bbc

Browse files
committed
chore: tweak semantic-release configuration
* **policy-resolver:** use an LRU cache instead of a map ([03ad4f7](03ad4f7)) * **store:** add concept of policy statement groups ([#71](#71)) ([094e2e3](094e2e3)) * use an event emitter to invalidate caches ([032ac8d](032ac8d))
1 parent 4a4903a commit ae55bbc

File tree

4 files changed

+104
-9
lines changed

4 files changed

+104
-9
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
name: Publish using semantic-release
44
on:
5-
workflow_dispatch:
6-
types: [semantic-release]
5+
push:
6+
branches: ["main", "next"]
77

88
jobs:
99
publish-npm:
@@ -18,5 +18,6 @@ jobs:
1818
- run: npm ci
1919
- name: Release
2020
env:
21-
NPM_TOKEN: ${{ secrets.npm_token }}
22-
run: npx semantic-release
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: npx semantic-release --dry-run

.releaserc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
{
2-
"branches": ["main", "next"],
2+
"branches": ["main", { "name": "next", "prelease": "rc" }],
33
"plugins": [
44
"@semantic-release/commit-analyzer",
55
"@semantic-release/release-notes-generator",
6-
"@semantic-release/npm",
6+
["@semantic-release/npm", { "npmPublish": false }],
7+
["@semantic-release/git",
8+
{
9+
"assets": ["package.json", "package-lock.json", "dist/*", "CHANGELOG.md"],
10+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
11+
}],
712
"@semantic-release/github"
813
]
914
}

package-lock.json

Lines changed: 89 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@freakyfelt/could-could",
3-
"version": "2.0.0-RC1",
3+
"version": "2.0.0-rc.1",
44
"description": "An authorization library built on top of JsonLogic",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -30,7 +30,9 @@
3030
"lru-cache": "^7.18.1"
3131
},
3232
"devDependencies": {
33+
"@semantic-release/changelog": "^6.0.2",
3334
"@semantic-release/commit-analyzer": "^9.0.2",
35+
"@semantic-release/git": "^10.0.1",
3436
"@semantic-release/github": "^8.0.7",
3537
"@semantic-release/npm": "^9.0.2",
3638
"@semantic-release/release-notes-generator": "^10.0.3",

0 commit comments

Comments
 (0)