Skip to content

Commit c2dea9f

Browse files
committed
2 parents a32b242 + 2acba2f commit c2dea9f

File tree

3 files changed

+20
-26
lines changed

3 files changed

+20
-26
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
- name: install dependencies
1313
run: npm install
1414
- name: run build
15-
run: tsc && vite build
15+
run: tsc && npm run build

.github/workflows/deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616
- run: |
17-
tsc && vite build
17+
tsc && npm run build
1818
1919
- uses: amondnet/vercel-action@v20 #deploy
2020
with:

.github/workflows/release.yml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
1-
name: Releases
1+
name: Changelog
2+
23
on:
34
push:
4-
branches:
5-
- main
5+
branches: [ main ]
6+
pull_request:
7+
branches: '*'
68

79
jobs:
8-
changelog:
10+
publish:
911
runs-on: ubuntu-latest
10-
11-
steps:
12-
- uses: actions/checkout@v2
13-
14-
- name: conventional Changelog Action
15-
id: changelog
16-
uses: TriPSs/[email protected]
17-
with:
18-
github-token: ${{ secrets.CHANGELOG_RELEASE }}
19-
version-file: './package.json,./package-lock.json'
20-
21-
- name: create release
22-
uses: actions/create-release@v1
23-
if: ${{ steps.changelog.outputs.skipped == 'false' }}
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }}
26-
with:
27-
tag_name: ${{ steps.changelog.outputs.tag }}
28-
release_name: ${{ steps.changelog.outputs.tag }}
29-
body: ${{ steps.changelog.outputs.clean_changelog }}
12+
if: ${{ github.ref == 'refs/heads/main' }}
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- run: npm ci
20+
- run: npm run semantic-release
21+
env:
22+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }}

0 commit comments

Comments
 (0)