refactor: added semantic-release-export-data & updated workflows

This commit is contained in:
Bilal Qamar
2023-02-27 17:12:30 +05:00
parent fdbb83f51e
commit 748d4746b3
4 changed files with 9672 additions and 4 deletions

View File

@@ -35,3 +35,27 @@ jobs:
run: npm run i18n_extract
- name: Coverage
uses: codecov/codecov-action@v3
get-next-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npx semantic-release --dry-run
id: get-next-version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
new-release-published: ${{ steps.get-next-version.outputs.new-release-published }}
new-release-version: ${{ steps.get-next-version.outputs.new-release-version }}
build:
runs-on: ubuntu-latest
needs: next-version
if: needs.get-next-version.outputs.new-release-published == 'true'
steps:
- uses: actions/checkout@v3
- run: echo "The new release version is ${{ needs.get-next-version.outputs.new-release-version }}"