Skip to content

Commit 1adf944

Browse files
committed
fix: semantic-release local test
1 parent b74d670 commit 1adf944

21 files changed

+12308
-7616
lines changed

.github/workflows/npm.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build and Release to npm
2+
on:
3+
push:
4+
branches:
5+
- 'dev'
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: "18"
15+
cache: "npm"
16+
- run: npm ci
17+
- run: npm run release
18+
env:
19+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ npm-debug.log*
1010
node_modules
1111
yarn.lock
1212
docs
13+
14+
/dist

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=http://localhost:4873

.releaserc.json

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

0 commit comments

Comments
 (0)