Skip to content

Commit

Permalink
chore: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 10, 2021
1 parent 24e706a commit ba9584a
Show file tree
Hide file tree
Showing 7 changed files with 1,423 additions and 29 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: https://registry.npmjs.org/
- run: npm i -g pnpm @antfu/ni
- run: nci
- run: nr ci:release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- uses: EndBug/add-and-commit@v7
with:
add: '**/CHANGELOG.md'
branch: 'main'
message: 'chore: update changelog'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"lint": "eslint '**/*.{js,ts,vue,json}'",
"lint:fix": "nr lint --fix",
"upgrade": "taze -rwi --include /@slidev/"
"upgrade": "taze -rwi --include /@slidev/",
"ci:release": "zx scripts/release.mjs"
},
"husky": {
"hooks": {
Expand All @@ -25,9 +26,20 @@
"@slidev/cli": "^0.6.7",
"@slidev/client": "^0.6.7",
"@slidev/types": "^0.6.7",
"@types/node": "^15.0.2",
"@typescript-eslint/eslint-plugin": "^4.22.1",
"bumpp": "^6.0.6",
"conventional-changelog-cli": "^2.1.1",
"eslint": "^7.26.0",
"esno": "^0.5.0",
"fast-glob": "^3.2.5",
"husky": "4.3.7",
"lint-staged": "^11.0.0",
"prompts": "^2.4.1",
"taze": "^0.4.5",
"typescript": "^4.2.4",
"vite-plugin-windicss": "^0.15.10",
"vue": "^3.0.11",
"zx": "^1.2.2"
}
}
Loading

0 comments on commit ba9584a

Please sign in to comment.