Skip to content

Commit 5fc213b

Browse files
committed
fit: fix github workflow
1 parent 1d76d33 commit 5fc213b

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

.changeset/neat-goats-jog.md

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

.github/workflows/publish.yml

+10-17
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
1-
name: Create Release Pull Request
1+
name: Publish to npm
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
8-
concurrency: ${{ github.workflow }}-${{ github.ref }}
4+
release:
5+
types: [created]
96

107
jobs:
11-
create-release-pr:
12-
name: Create Release Pull Request
8+
publish:
9+
name: Publish
1310
runs-on: ubuntu-latest
14-
permissions: write-all
1511
steps:
1612
- uses: actions/checkout@v4
1713

1814
- name: Git Identity
1915
run: |
2016
git config --global user.name 'levende'
2117
git config --global user.email '[email protected]'
22-
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
2318
env:
2419
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2520

@@ -35,11 +30,9 @@ jobs:
3530

3631
- run: pnpm install
3732

38-
- name: Create Release Pull Request
39-
id: changesets
40-
uses: changesets/action@v1
41-
with:
42-
commit: 'chore: release'
43-
title: 'chore: release'
33+
- run: pnpm build
34+
35+
- name: Publish to npm
36+
run: npm publish
4437
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)