Skip to content

Commit

Permalink
🔧 chore: Update CI (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
honzabubenik committed Jan 22, 2024
1 parent e76da0a commit 789050b
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 1,651 deletions.
42 changes: 7 additions & 35 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,6 @@ on:
- main

jobs:
build:
name: Build package
runs-on: [ self-hosted, Linux ]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: npm ci --ignore-scripts

- name: Build package
run: npm run build

lint:
name: Lint source files
runs-on: [ self-hosted, Linux ]
Expand All @@ -42,20 +24,10 @@ jobs:
- name: Lint source files
run: npm run lint

# test:
# name: Run tests
# runs-on: [ self-hosted, Linux ]
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - name: Setup Node
# uses: actions/setup-node@v3
# with:
# node-version: 16
#
# - name: Install dependencies
# run: npm ci --ignore-scripts
#
# - name: Run tests
# run: npm run test
build:
name: Build package
needs: lint
runs-on: [ self-hosted, Linux ]
steps:
- name: Build package
run: npm run build
32 changes: 19 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,35 @@ permissions:
pull-requests: write

jobs:
ci:
name: CI Init
runs-on: [ self-hosted, Linux ]
outputs:
action: ${{ steps.init.outputs.action }}
steps:
- id: init
uses: localazy/release/init@v2

prepare:
name: Prepare Release
if: github.event.head.ref != 'release' && !contains(github.event.commits[0].message, '🚀 release:')
name: Prepare Release PR
needs: ci
if: needs.ci.outputs.action == 'prepare'
runs-on: [ self-hosted, Linux ]
steps:
- name: Prepare release branch and PR
uses: localazy/release@v1
- uses: localazy/release/prepare@v2
with:
action: prepare
app-id: ${{ secrets.AUTH_APP_ID }}
app-key: ${{ secrets.AUTH_APP_KEY }}

release:
name: Release
if: github.event.head.ref == 'release' || contains(github.event.commits[0].message, '🚀 release:')
publish:
name: Publish Release
needs: ci
if: needs.ci.outputs.action == 'publish'
runs-on: [ self-hosted, Linux ]
steps:
- name: Release new version
uses: localazy/release@v1
- uses: localazy/release/publish@v2
with:
action: release
app-id: ${{ secrets.AUTH_APP_ID }}
app-key: ${{ secrets.AUTH_APP_KEY }}
npm-publish: true
npm-access: true
npm-publish: public
npm-token: ${{ secrets.NPM_AUTH_TOKEN }}
Loading

0 comments on commit 789050b

Please sign in to comment.