Skip to content

Commit

Permalink
chore: release
Browse files Browse the repository at this point in the history
  • Loading branch information
shulandmimi committed May 20, 2024
1 parent 20bad27 commit 2c7b382
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish farmup
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install Dependencies
run: npm install -g [email protected] && pnpm i --frozen-lockfile
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: npx changeset version
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
{
"files": [
"*.json",
"*.md"
"*.md",
"*.yaml"
],
"options": {
"tabWidth": 2
Expand Down
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"biome.enabled": true,
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
}
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"type": "module",
"repository": {
"url": "https://github.com/shulandmimi/farmup"
"url": "https://github.com/farm-fe/farmup"
},
"publishConfig": {
"access": "public"
Expand All @@ -14,10 +14,12 @@
"build": "farm build",
"preview": "farm preview",
"clean": "farm clean",
"publish": "pnpm publish",
"watch": "farm watch"
"watch": "farm watch",
"release": "pnpm run build && changeset publish"
},
"bin": {
"farmup": "./bin/farmup.js"
},
"bin": "./dist/farmup.js",
"devDependencies": {
"@farmfe/cli": "^1.0.2",
"@farmfe/js-plugin-dts": "^0.5.1",
Expand Down Expand Up @@ -56,6 +58,7 @@
},
"files": [
"dist",
"README.md"
"README.md",
"bin"
]
}

0 comments on commit 2c7b382

Please sign in to comment.