Skip to content

Commit

Permalink
chore(workflows): create changesets workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
envin3 committed Mar 4, 2024
1 parent af03143 commit 224e1ac
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
branches: [develop]

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

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies
run: npm i

- name: Create Release Pull Request
uses: changesets/action@v1
with:
commit: 'chore: release package(s)'
title: 'chore: release package(s)'
version: npm run changeset-version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/run-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Security Check

on:
push:
branches: [master]
branches: [develop, master]
pull_request:
branches: [master]
branches: [develop, master]

jobs:
security:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Tests

on:
push:
branches: [master]
branches: [develop, master]
pull_request:
branches: [master]
branches: [develop, master]

jobs:
build:
Expand Down

0 comments on commit 224e1ac

Please sign in to comment.