-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(semantic-release-replace-plugin): added workflows for semantic rel…
…ease replace plugin
- Loading branch information
1 parent
c95ac73
commit a10853e
Showing
4 changed files
with
113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Release | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
tests: | ||
uses: ./.github/workflows/semantic-release-replace-test.yml | ||
secrets: inherit | ||
permissions: | ||
contents: read | ||
|
||
release: | ||
name: Release @ ${{ vars.RTLDEV_MW_CI_OS }} | ||
runs-on: ${{ vars.RTLDEV_MW_CI_OS }} | ||
needs: tests | ||
permissions: | ||
contents: write | ||
issues: write | ||
deployments: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
- name: Setup NodeJS ${{ vars.RTLDEV_MW_CI_NODE_VERSION }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '${{ vars.RTLDEV_MW_CI_NODE_VERSION }}' | ||
check-latest: true | ||
cache: npm | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RTLDEV_MW_CI_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
TEAMS_NOTIFICATION_URI: ${{ secrets.RTLDEV_MW_CI_NOTIFICATION_URI }} | ||
COMMIT_SHA: ${{ github.sha }} | ||
# TODO move npm run documentation to semantic-release | ||
run: | | ||
npm run all | ||
npx semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Linting & Coverage | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
test: | ||
name: 🧪 Linting | ||
runs-on: ${{ vars.RTLDEV_MW_CI_OS }} | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
- name: Super Linter Code Base | ||
uses: github/super-linter/slim@v5 | ||
env: | ||
FILTER_REGEX_INCLUDE: "/src/*" | ||
DEFAULT_BRANCH: main | ||
VALIDATE_TYPESCRIPT_ES: true | ||
VALIDATE_ALL_CODEBASE: false | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
test_matrix: | ||
strategy: | ||
matrix: | ||
node-version: ${{ fromJson(vars.RTLDEV_MW_CI_NODE_MATRIX) }} | ||
|
||
name: 🧪 Testing | ||
runs-on: ${{ vars.RTLDEV_MW_CI_OS }} | ||
needs: test | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
- name: Setup NodeJS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- name: Build & Validation | ||
run: | | ||
npm ci | ||
npm run lint | ||
npm run test |