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 a37372f
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 70 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/build-and-release.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build, test, and release

on:
push:
branches:
- main
workflow_dispatch:

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

jobs:
test:
uses: ./.github/workflows/checkout-install.yml
steps:
- name: Run tests
run: |
npm run package
npm run lint
npm exec tsc
npm test
build-and-release:
needs: test
uses: ./.github/workflows/checkout-install.yml
steps:
- name: Build and release the app
env:
GH_TOKEN: ${{ secrets.github_token }}
run: npm run package:publish
24 changes: 24 additions & 0 deletions .github/workflows/checkout-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Common steps workflow

on:
workflow_call:

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

strategy:
matrix:
os: [windows-latest]

steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Install Node.js and npm
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm

- name: Install dependencies
run: npm install
37 changes: 0 additions & 37 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit a37372f

Please sign in to comment.