Skip to content

Commit 4fde8e9

Browse files
committed
fit: fix github workflow
1 parent 4398422 commit 4fde8e9

File tree

5 files changed

+84
-16
lines changed

5 files changed

+84
-16
lines changed

.changeset/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
33
"changelog": [
4-
"@changesets/cli/changelog",
4+
"changesets/changelog-github",
55
{
66
"repo": "Lawndlwd/unused-i18n"
77
}

.changeset/fast-apes-collect.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"unused-i18n": patch
3+
---
4+
5+
fix github workflow

.github/workflows/release.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,18 @@ on:
55
branches:
66
- main
77

8-
concurrency: ${{ github.workflow }}-${{ github.ref }}
9-
108
jobs:
119
release:
12-
name: Release
1310
runs-on: ubuntu-latest
1411
permissions: write-all
1512

1613
steps:
1714
- uses: actions/checkout@v4
1815

19-
- name: Git Identity
16+
- name: Set up Git Identity
2017
run: |
21-
git config --global user.name 'levende'
22-
git config --global user.email '[email protected]'
23-
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
git config --global user.name 'github-actions[bot]'
19+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
2620
2721
- uses: pnpm/[email protected]
2822
with:
@@ -41,8 +35,7 @@ jobs:
4135
with:
4236
commit: 'chore: release'
4337
title: 'chore: release'
44-
publish: pnpm release && npm publish
38+
publish: pnpm publish --access public
4539
env:
4640
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4741
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48-
NPM_CONFIG_PROVENANCE: true

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@
2626
"start": "ts-node src/index.ts",
2727
"test": "vitest",
2828
"release": "pnpm build && pnpm changeset publish",
29+
"changeset": "npx changeset",
2930
"coverage": "vitest run --coverage"
3031
},
3132
"dependencies": {
32-
"@changesets/cli": "^2.27.3",
3333
"ansi-colors": "^4.1.3",
3434
"commander": "^12.1.0"
3535
},
3636
"devDependencies": {
37+
"@changesets/changelog-github": "^0.5.0",
38+
"@changesets/cli": "^2.27.3",
3739
"@rollup/plugin-commonjs": "^25.0.8",
3840
"@rollup/plugin-json": "^6.1.0",
3941
"@rollup/plugin-node-resolve": "^15.2.3",

pnpm-lock.yaml

+71-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)