Skip to content

Commit

Permalink
chore: add changesets versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
envin3 authored and oliviera9 committed Mar 4, 2024
1 parent 755a2ba commit 847dbdf
Show file tree
Hide file tree
Showing 6 changed files with 1,752 additions and 144 deletions.
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "develop",
"updateInternalDependencies": "patch",
"ignore": []
}
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
Loading

0 comments on commit 847dbdf

Please sign in to comment.