Skip to content

Commit 9c5e511

Browse files
committed
config(gh-actions): finish semantic-release workflow
1 parent aa92318 commit 9c5e511

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/github-action-release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: GitHub Actions Demo
1+
name: Semantic Release
22
on:
33
push:
44
branches:
@@ -11,11 +11,18 @@ jobs:
1111
name: Semantic Release Process
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Setup node
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- name: Setup Node
1519
uses: actions/setup-node@v2
1620
with:
1721
node-version: 14
18-
- run: echo "RUNNING SEMANTIC RELEASE"
22+
- name: Install Semantic Release Packages
23+
run: npm i -g semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/npm @semantic-release/git @semantic-release/github
24+
- name: Exec Semantic Release
25+
run: npx semantic-release
1926
env:
2027
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2128
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.github/workflows/github-action-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: GitHub Actions Demo
1+
name: Test and Lint
22
on:
33
push:
44
branches:
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v2
2121
with:
2222
fetch-depth: 0
23-
- name: Setup node
23+
- name: Setup Node v${{ matrix.node }}
2424
uses: actions/setup-node@v2
2525
with:
2626
node-version: ${{ matrix.node }}

0 commit comments

Comments
 (0)