Skip to content

Commit

Permalink
ci: improve release.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bernizhel committed Jul 15, 2023
1 parent 41f5661 commit 74bed65
Showing 1 changed file with 34 additions and 24 deletions.
58 changes: 34 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,30 @@ on:
tags: ['v\d+']
workflow_dispatch:

# permissions:
# issues: write
# contents: read

jobs:
unit-tests:
uses: ./.github/workflows/unit-tests.yml

integration-tests:
uses: ./.github/workflows/integration-tests.yml

eslint:
uses: ./.github/workflows/eslint.yml

prettier:
uses: ./.github/workflows/prettier.yml

commitlint:
uses: ./.github/workflows/commitlint.yml

release:
name: Release
name: Release and issue
needs:
- unit-tests
- integration-tests
- eslint
- prettier
- commitlint
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -21,13 +38,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: 'package-lock.json'


- name: Get information
id: tags
run: |
Expand Down Expand Up @@ -74,21 +85,20 @@ jobs:
CHANGELOG: ${{ steps.build_changelog.outputs.changelog }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/ISSUE_TEMPLATE.md
filename: ./.github/ISSUE_TEMPLATE.md
update_existing: true
search_existing: all

# - name: Create an issue
# id: create-an-issue
# uses: JasonEtco/create-an-issue@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# VERSION: ${{ github.ref_name }}
# AUTHOR: ${{ github.actor }}
# with:
# filename: ./.github/ISSUE_TEMPLATE.md
# update_existing: true
# search_existing: all
deploy:
runs-on: ubuntu-latest
name: Build and deploy
needs: release
steps:
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: 'package-lock.json'

- name: Install dependencies
run: npm ci
Expand Down

0 comments on commit 74bed65

Please sign in to comment.