Skip to content

Commit f9b0520

Browse files
committed
Update CI/CD workflows and dependencies
- Upgrade actions/checkout from v4 to v5 in ci.yml and release.yml for improved performance and features. - Modify global dependencies in action.yml to include @changesets/changelog-github for enhanced changelog generation. - Add build and type checking steps in release.yml to ensure code quality before publishing. - Adjust publish command in release.yml to use npm run version and npm run publish for better version management.
1 parent 9d7e10c commit f9b0520

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
3030
3131
- name: Install global dependencies
3232
shell: bash
33-
run: npm i -g turbo prettier typescript @changesets/cli @arethetypeswrong/cli
33+
run: npm i -g turbo prettier typescript @arethetypeswrong/cli @changesets/cli @changesets/changelog-github
3434

3535
- name: Install dependencies
3636
shell: bash

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171

7272
steps:
7373
# Checkout the repository
74-
- uses: actions/checkout@v4
74+
- uses: actions/checkout@v5
7575
- uses: ./.github/actions/setup
7676
with:
7777
node-version: ${{ matrix.node-version }}

.github/workflows/release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,23 @@ jobs:
1515
if: github.ref == 'refs/heads/main'
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
19+
1920
- uses: ./.github/actions/setup
2021
with:
2122
node-version: 22
23+
24+
- name: Build Packages
25+
run: npm run build
26+
27+
- name: Check Types
28+
run: npm run attw
29+
2230
- name: Create Release Pull Request or Publish
2331
uses: changesets/action@v1
2432
with:
25-
publish: npm run publish-packages
33+
version: npm run version
34+
publish: npm run publish
2635
env:
2736
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
NPM_TOKEN: ''

0 commit comments

Comments
 (0)