Skip to content

Commit 616f9cd

Browse files
committedMay 18, 2020
fix: add semantic release test (#399)
1 parent 5d0d95f commit 616f9cd

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed
 

‎.github/workflows/test-release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test Release
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node: [12.x]
14+
os: [ubuntu-latest]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v1
18+
19+
- name: Use Node.js ${{ matrix.node }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node }}
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build
28+
run: npm run build --if-present
29+
30+
- name: Semantic Release
31+
run: npx semantic-release --dry-run
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

‎package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "htmlhint",
3-
"version": "0.12.2",
3+
"version": "0.0.0-semantically-released",
44
"description": "The Static Code Analysis Tool for your HTML",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)
Please sign in to comment.