Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dylannnn authored Dec 31, 2023
2 parents b8a152f + 7c9a129 commit d63b4b1
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/release-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test release for Feature branch

on:
push:
branches: [ 'develop' ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.JS
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Cache NPM packages
id: cache-npm-packages
uses: actions/cache@v3
env:
cache-name: cache-npm-packages
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }}
- if: ${{ steps.cache-npm-packages.outputs.cache-hit != 'true' }}
run: npm ci --ignore-scripts
- name: Config Git User
run: |
git config --global user.email "${{ vars.RELEASE_USER_EMAIL }}"
git config --global user.name "${{ vars.RELEASE_USER_NAME }}"
- name: Lint
run: npm run mkh:lint
- name: Test
run: npm run mkh:test
- name: Build
run: npm run mkh:build
- name: Semantic Release 📦
run: npx semantic-release --ci --plugins @semantic-release/changelog
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
42 changes: 42 additions & 0 deletions .github/workflows/release-feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test release for Feature branch

on:
push:
branches: [ 'feature/**' ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.JS
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Cache NPM packages
id: cache-npm-packages
uses: actions/cache@v3
env:
cache-name: cache-npm-packages
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }}
- if: ${{ steps.cache-npm-packages.outputs.cache-hit != 'true' }}
run: npm ci --ignore-scripts
- name: Config Git User
run: |
git config --global user.email "${{ vars.RELEASE_USER_EMAIL }}"
git config --global user.name "${{ vars.RELEASE_USER_NAME }}"
- name: Lint
run: npm run mkh:lint
- name: Test
run: npm run mkh:test
- name: Build
run: npm run mkh:build
- name: Semantic Release 📦
run: npx semantic-release --ci --plugins @semantic-release/changelog
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
1 change: 0 additions & 1 deletion .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
permissions:
contents: read


jobs:
build:
permissions:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/release-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test release for Feature branch

on:
push:
branches: [ 'next' ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.JS
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Cache NPM packages
id: cache-npm-packages
uses: actions/cache@v3
env:
cache-name: cache-npm-packages
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }}
- if: ${{ steps.cache-npm-packages.outputs.cache-hit != 'true' }}
run: npm ci --ignore-scripts
- name: Config Git User
run: |
git config --global user.email "${{ vars.RELEASE_USER_EMAIL }}"
git config --global user.name "${{ vars.RELEASE_USER_NAME }}"
- name: Lint
run: npm run mkh:lint
- name: Test
run: npm run mkh:test
- name: Build
run: npm run mkh:build
- name: Semantic Release 📦
run: npx semantic-release --ci --plugins @semantic-release/changelog
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit d63b4b1

Please sign in to comment.