Skip to content

Commit

Permalink
fix(release): add release.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao committed Apr 30, 2022
1 parent 2687253 commit ea19285
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Retrieve the secret and decode it to a file
working-directory: streaming/src/main/resources
env:
PROPERTIES_BASE64: ${{ secrets.HM_STEAMING_APPLICATION_PROPERTIES_BASE64 }}
working-directory: streaming/src/main/resources
run: |
echo $HM_STEAMING_APPLICATION_PROPERTIES_BASE64 | base64 --decode > application-production.properties
- name: Build and push Docker image
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache npm
uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
npm ci
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ jobs:
npm run build
- name: Lighthouse
working-directory: web
run: |
npm run lighthouse
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
run: |
npm run lighthouse
# https://www.chromatic.com/docs/github-actions
web-storybook:
Expand Down Expand Up @@ -521,10 +521,10 @@ jobs:
cd api-node && npm ci
- name: Stryker
working-directory: api-node
run: |
npm run test:stryker
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
run: |
npm run test:stryker
streaming-test:
name: Streaming - Test
Expand Down
5 changes: 5 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// https://semantic-release.gitbook.io/semantic-release/usage/configuration

module.exports = {
branches: ['main'],
};

0 comments on commit ea19285

Please sign in to comment.