Skip to content

Commit

Permalink
feat(changeset): add changeset workflow script
Browse files Browse the repository at this point in the history
feat(changeset): add changeset workflow script
  • Loading branch information
jieey1140 authored Feb 24, 2024
2 parents f73a35f + 2c48eb8 commit 8d6c4b0
Show file tree
Hide file tree
Showing 28 changed files with 2,132 additions and 445 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/sync-changeset-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Sync Changeset Version

on:
push:
branches:
- develop

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

jobs:
changesets:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 20000
fetch-tags: true

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

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm i

- name: Create or Update Release Pull Request
uses: ./scripts/src/changeset
with:
log-level: action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUSKY: '0'
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@redredgroup/samsungknox",
"private": true,
"version": "1.0.0",
"repository": "https://github.com/REDREDGROUP/samsungknox.git",
"maintainers": [
{
Expand Down Expand Up @@ -46,5 +47,5 @@
"maxLineWidth": 100
}
},
"packageManager": "pnpm@8.9.2"
"packageManager": "pnpm@8.10.5"
}
6 changes: 3 additions & 3 deletions packages/knox-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
"eslint": "8.55.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.0.1",
"prettier": "3.0.0",
"tsup": "6.7.0",
"typescript": "5.0.4",
"prettier": "3.0.3",
"tsup": "7.2.0",
"typescript": "~5.2.2",
"vitest": "0.34.6"
}
}
2 changes: 1 addition & 1 deletion packages/knox-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@docusaurus/tsconfig": "3.0.0",
"@docusaurus/types": "3.0.0",
"@types/unist": "3.0.1",
"prettier": "3.0.0",
"prettier": "3.0.3",
"typescript": "~5.2.2"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/knox-fastlane-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
},
"devDependencies": {
"@prettier/plugin-ruby": "4.0.2",
"prettier": "3.0.0"
"prettier": "3.0.3"
}
}
2 changes: 1 addition & 1 deletion packages/knox-token-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"eslint-plugin-prettier": "5.0.1",
"prettier": "3.0.3",
"tsup": "7.2.0",
"typescript": "5.2.2",
"typescript": "~5.2.2",
"vitest": "0.34.6"
}
}
Loading

0 comments on commit 8d6c4b0

Please sign in to comment.