Skip to content

Commit

Permalink
ci: add semantic-release, publish-dev and commitlint to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdmlln committed Dec 13, 2023
1 parent 9236519 commit 9811740
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 10 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@

name: CI

on:
pull_request:

jobs:
build:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: remindgmbh/[email protected]
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.9
- run: npm ci
- run: npm run prepublishOnly
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: |
npm ci
npm run static-analysis
15 changes: 15 additions & 0 deletions .github/workflows/publish_development.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish Development

on:
push:
branches:
- "develop"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: remindgmbh/[email protected]
with:
node-version: 20
npm-token: ${{ secrets.NPM_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release

on:
push:
branches:
- "main"

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: remindgmbh/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}
type: npm
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
"lint": "npm run lint:script",
"lint:script": "eslint --ext \".js,.ts,.vue\" .",
"prepare": "npm run dev:prepare && nuxt-module-build build",
"prepublishOnly": "npm run typecheck && npm run lint",
"prepack": "npm run dev:prepare && nuxt-module-build build",
"preview": "nuxi preview playground",
"static-analysis": "npm run dev:prepare && npm run typecheck && npm run lint",
"typecheck": "nuxi typecheck"
},
"dependencies": {
Expand Down

0 comments on commit 9811740

Please sign in to comment.