Skip to content

Commit

Permalink
fit: fix github workflow (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawndlwd authored May 25, 2024
1 parent 0730a5b commit 0015bda
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/cli/changelog",
"changesets/changelog-github",
{
"repo": "Lawndlwd/unused-i18n"
}
Expand Down
5 changes: 5 additions & 0 deletions .changeset/fast-apes-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"unused-i18n": patch
---

fix github workflow
15 changes: 4 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,18 @@ on:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions: write-all

steps:
- uses: actions/checkout@v4

- name: Git Identity
- name: Set up 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 }}
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- uses: pnpm/[email protected]
with:
Expand All @@ -41,8 +35,7 @@ jobs:
with:
commit: 'chore: release'
title: 'chore: release'
publish: pnpm release && npm publish
publish: pnpm publish --access public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@
"start": "ts-node src/index.ts",
"test": "vitest",
"release": "pnpm build && pnpm changeset publish",
"changeset": "npx changeset",
"coverage": "vitest run --coverage"
},
"dependencies": {
"@changesets/cli": "^2.27.3",
"ansi-colors": "^4.1.3",
"commander": "^12.1.0"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.3",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
Expand Down
74 changes: 71 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0015bda

Please sign in to comment.