Skip to content

Commit

Permalink
build: optimize github action
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Jan 20, 2025
1 parent 8f5bd3c commit 1413862
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 31 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,11 @@ on:
- main
- prerelease

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

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js Env and Test
uses: actions/setup-node@v3
with:
node-version: lts/*
- run: corepack enable
- run: pnpm i
- run: pnpm test

- name: Create Release Pull Request or Publish
id: changesets
# https://github.com/changesets/action
uses: changesets/action@v1
with:
publish: pnpm release
commit: "chore: release"
title: "chore: release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: zanminkian/github-actions/.github/workflows/release.yml@main
secrets: inherit
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
},
"devDependencies": {
"@changesets/cli": "2.27.11",
"fenge": "0.4.0",
"fenge": "0.4.2",
"typescript": "5.7.3"
},
"packageManager": "pnpm@9.15.0",
"packageManager": "pnpm@10.0.0",
"engines": {
"node": ">=18.0.0",
"pnpm": "^9.0.0"
"pnpm": "^10.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/tscx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@types/minimist": "1.2.5",
"@types/node": "22.10.6",
"@types/node": "22.10.7",
"tsx": "4.19.2",
"vitest": "1.6.0"
},
Expand Down

0 comments on commit 1413862

Please sign in to comment.