Skip to content

Commit 9cde8c3

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

21 files changed

+12291
-7616
lines changed

.github/workflows/npm.yml

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

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)