Skip to content

Commit

Permalink
fit: fix github workflow (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawndlwd authored May 25, 2024
1 parent 1d76d33 commit 4c956dc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/neat-goats-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lawndlwd/unused-i18n": patch
---

fix github workflow
27 changes: 10 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
name: Create Release Pull Request
name: Publish to npm

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}
release:
types: [created]

jobs:
create-release-pr:
name: Create Release Pull Request
publish:
name: Publish
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4

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

Expand All @@ -35,11 +30,9 @@ jobs:

- run: pnpm install

- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
with:
commit: 'chore: release'
title: 'chore: release'
- run: pnpm build

- name: Publish to npm
run: npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4c956dc

Please sign in to comment.