Skip to content

Commit

Permalink
ci: try gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
msp5382 committed Dec 26, 2023
1 parent 61594ff commit a194099
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 40
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
name: Checkout
with:
fetch-depth: 0

- uses: dtinth/setup-github-actions-caching-for-turbo@v1

- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
version: 8

- name: Install dependencies
run: bun install

- name: Run build
run: bun build:container && bun build:plugin
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release with reusable workflows

on:
push:
branches:
- main

permissions:
actions: read
checks: read
contents: write
deployments: read
issues: write
discussions: read
packages: write
pull-requests: write
repository-projects: read
security-events: read
statuses: read

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
uses: softnetics/workflows/.github/workflows/release-packages.yaml@main
with:
before-publish: npm build:plugin
package-manager: npm
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a194099

Please sign in to comment.