Skip to content

Commit

Permalink
chore: update release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljancar committed Jun 19, 2024
1 parent 928bcb9 commit 6e46976
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 13 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
app: [course, admin-ui]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -21,8 +24,8 @@ jobs:
- name: Install dependencies
run: npm install

- name: Install all dependencies
run: npm run install:all
- name: Install app dependencies
run: npm install --prefix apps/${{ matrix.app }}

- name: Check Git Status
run: git status
Expand All @@ -32,7 +35,7 @@ jobs:

- name: Lint commit messages
run: |
npx commitlint --from HEAD~1 --to HEAD
npx commitlint --from=HEAD~1 --to=HEAD
continue-on-error: true

- name: Semantic Release
Expand All @@ -41,5 +44,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
DEBUG: semantic-release:*
HUSKY_SKIP_HOOKS: 1
run: npx semantic-release --no-verify
run: npx semantic-release --no-verify --cwd apps/${{ matrix.app }}
1 change: 0 additions & 1 deletion apps/admin-ui/.releaserc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"branches": ["master"],
"plugins": ["@semantic-release/npm", "@semantic-release/git"],
"preset": "react",
"npmPublish": true
}
1 change: 0 additions & 1 deletion apps/course/.releaserc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"branches": ["master"],
"plugins": ["@semantic-release/npm", "@semantic-release/git"],
"preset": "angular",
"npmPublish": true
}
49 changes: 43 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@semantic-release/git": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"conventional-changelog-angular": "^8.0.0",
"daisyui": "^4.6.1",
"eslint": "^8.56.0",
"firebase-tools": "^13.4.0",
Expand Down

0 comments on commit 6e46976

Please sign in to comment.