Skip to content

Commit b25760a

Browse files
committed
Use semantic-release
1 parent cc03d5c commit b25760a

File tree

6 files changed

+10916
-2198
lines changed

6 files changed

+10916
-2198
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Semantic Release
2+
on:
3+
workflow_run:
4+
workflows:
5+
- Tests
6+
branches: master
7+
types:
8+
- completed
9+
10+
jobs:
11+
semantic-release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3.3.0
16+
with:
17+
node-version: 18
18+
cache: "npm"
19+
- run: npm ci
20+
- run: npm run build
21+
- run: npm run semantic-release
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
# Which one do I need again?
25+
NPM_TOKEN: ${{ secrets.npm_token }}
26+
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Node.js CI
4+
name: Tests
55

66
on:
77
push:
88
branches: [master]
99

1010
jobs:
11-
test:
11+
build:
1212
runs-on: ubuntu-latest
1313

1414
strategy:

.releaserc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"branches": ["master"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/npm",
7+
[
8+
"@semantic-release/git",
9+
{
10+
"assets": ["package.json"],
11+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
12+
}
13+
],
14+
[
15+
"@semantic-release/github",
16+
{
17+
"assets": []
18+
}
19+
]
20+
]
21+
}

0 commit comments

Comments
 (0)