Skip to content

Commit

Permalink
feat: updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyxdd committed Oct 21, 2023
1 parent 49e4add commit 3da822d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 49 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build, test, and release

on:
push:
branches:
- main
workflow_dispatch:

concurrency:
group: build-test-release
cancel-in-progress: true

jobs:
common:
uses: ./.github/workflows/checkout-install.yml

test:
steps:
- name: Run tests
run: |
npm run package
npm run lint
npm exec tsc
npm test
build-and-release:
needs: test
steps:
- name: Build and release the app
env:
GH_TOKEN: ${{ secrets.github_token }}
run: npm run package:publish
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: Build and release
name: Common steps workflow

on: push

concurrency:
group: build-and-release
cancel-in-progress: true
on:
workflow_call:

jobs:
release:
common:
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -26,8 +23,3 @@ jobs:

- name: Install dependencies
run: npm install

- name: Build and release the app
run: npm package:publish
env:
GH_TOKEN: ${{ secrets.github_token }}
37 changes: 0 additions & 37 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 3da822d

Please sign in to comment.