Skip to content

Commit 06c33d3

Browse files
committed
fix(ci): setup semantic releases (#11)
1 parent 857f886 commit 06c33d3

File tree

5 files changed

+4415
-107
lines changed

5 files changed

+4415
-107
lines changed

.github/workflows/deploy-website.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Build and Deploy Website
2-
on: [workflow_dispatch]
2+
on: [workflow_dispatch, release]
33

44
jobs:
55
build-and-deploy:
@@ -10,7 +10,7 @@ jobs:
1010

1111
- name: Build
1212
run: |
13-
npm install
13+
npm ci
1414
npm run build:site
1515
1616
- name: Deploy

.github/workflows/publish.yml

-17
This file was deleted.

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release NPM package
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: 14
17+
- run: npm ci
18+
- run: npm run build
19+
- run: npx semantic-release
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)