Skip to content

Commit

Permalink
update workflows for ci and cd
Browse files Browse the repository at this point in the history
  • Loading branch information
calender-sync committed May 14, 2024
1 parent e14b45f commit f02bc1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
name: CI
on:
push:
branches:
- "**"
branches: ["main"]
pull_request:
types: [opened, synchronize]

jobs:
build:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js v20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "pnpm"
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Release

on:
workflow_run:
workflows: ["CI"]
types:
- completed
push:
branches:
- main
Expand All @@ -17,15 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js v20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "pnpm"
Expand Down

0 comments on commit f02bc1b

Please sign in to comment.