Skip to content

Commit

Permalink
fix: fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed Jan 28, 2025
1 parent ae3be60 commit 0fe7b19
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
permissions:
contents: write
name: release
on:
push:
Expand All @@ -8,14 +10,6 @@ jobs:
uses: ./.github/workflows/test-jobs.yaml

release:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')

publish:
runs-on: ubuntu-latest
needs: test
steps:
Expand All @@ -27,7 +21,15 @@ jobs:
cache: pnpm
registry-url: 'https://registry.npmjs.org/'
- run: pnpm i
- run: pnpm build
- run: node --run build

- run: pnpm rk release-note --version ${{ github.ref_name }}
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: ./release-note.md

- run: pnpm version from-git --no-git-tag-version
- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 comments on commit 0fe7b19

Please sign in to comment.