Skip to content

Commit d542fca

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

21 files changed

+12299
-7616
lines changed

.github/workflows/npm.yml

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

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and Release to npm
2+
on:
3+
push:
4+
branches:
5+
- 'semantic-release'
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: |
17+
npm config set registry https://npm.pkg.github.com/abernier
18+
npm config set //npm.pkg.github.com/abernier:_authToken ${NPM_TOKEN}
19+
npm ci
20+
env:
21+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
- run: npm run release
23+
env:
24+
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+

.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)