Skip to content

Commit

Permalink
fit: fix github workflow (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawndlwd authored May 25, 2024
1 parent 0a5ad0a commit 47ebb4f
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 45 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 @@
---
'unused-i18n': patch
---

fix github workflow
5 changes: 5 additions & 0 deletions .changeset/orange-laws-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"unused-i18n": patch
---

fix repo name
38 changes: 0 additions & 38 deletions .github/workflows/publish.yml

This file was deleted.

13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Release Pull Request
name: Release

on:
push:
Expand All @@ -8,10 +8,11 @@ on:
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
create-release-pr:
name: Create Release Pull Request
release:
name: Release
runs-on: ubuntu-latest
permissions: write-all

steps:
- uses: actions/checkout@v4

Expand All @@ -26,7 +27,6 @@ jobs:
- uses: pnpm/[email protected]
with:
version: 9.1.1

- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -35,11 +35,14 @@ jobs:

- run: pnpm install

- name: Create Release Pull Request
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
commit: 'chore: release'
title: 'chore: release'
publish: pnpm release && npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @lawndlwd/unused-i18n
# unused-i18n

## 0.1.12

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@lawndlwd/unused-i18n",
"name": "unused-i18n",
"version": "0.1.12",
"license": "MIT",
"type": "module",
Expand Down

0 comments on commit 47ebb4f

Please sign in to comment.