Skip to content

Commit

Permalink
Add release CI (#52)
Browse files Browse the repository at this point in the history
🔧 chore: Add release CI
  • Loading branch information
honzabubenik authored May 2, 2024
1 parent dddaebc commit 770ea8a
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/.build.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: QA checks

on:
pull_request:
branches:
- main

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

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

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run test
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release CI

on:
push:
branches:
- main

permissions:
contents: write
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 PR
needs: ci
if: needs.ci.outputs.action == 'prepare'
runs-on: [self-hosted, Linux]
steps:
- uses: localazy/release/prepare@v2
with:
app-id: ${{ secrets.AUTH_APP_ID }}
app-key: ${{ secrets.AUTH_APP_KEY }}

publish:
name: Publish Release
needs: ci
if: needs.ci.outputs.action == 'publish'
runs-on: [self-hosted, Linux]
steps:
- uses: localazy/release/publish@v2
with:
app-id: ${{ secrets.AUTH_APP_ID }}
app-key: ${{ secrets.AUTH_APP_KEY }}
npm-publish: public
npm-token: ${{ secrets.NPM_AUTH_TOKEN_PUBLIC }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.vscode/settings.json
.idea/

0 comments on commit 770ea8a

Please sign in to comment.