Skip to content

Commit

Permalink
ci: release CI added
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-solanki committed Jul 14, 2023
1 parent a87a98d commit 992c059
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

permissions:
contents: write

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- run: npx changelogithub # or [email protected] if ensure the stable result
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Converts markdown files to HTML",
"main": "index.js",
"scripts": {
"release": "bumpp package.json",
"release": "npm run build && bumpp package.json",
"test": "echo \"Error: no test specified\" && exit 1",
"build": "ncc build index.js --license licenses.txt"
},
Expand All @@ -30,4 +30,4 @@
"@actions/core": "^1.6.0",
"markdown-it": "^13.0.1"
}
}
}

0 comments on commit 992c059

Please sign in to comment.