Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaz9 committed May 6, 2024
1 parent 880b0f0 commit bd454bb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,6 @@ on:
- "v*"

jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
Version ${{ github.ref }}
draft: false
prerelease: false

build:
name: Test and build
runs-on: ubuntu-latest
Expand All @@ -42,7 +21,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9
version: 9.1.0

- run: pnpm install

Expand Down Expand Up @@ -83,3 +62,25 @@ jobs:
run: |
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
npm -r publish . --access=public --no-git-checks
create-release:
name: Create Release
runs-on: ubuntu-latest
needs: publish
permissions: write-all
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
Version ${{ github.ref }}
draft: false
prerelease: false
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
"typescript": "5.4.5",
"vitest": "1.5.2"
},
"packageManager": "pnpm@9.0.6"
"packageManager": "pnpm@9.1.0"
}

0 comments on commit bd454bb

Please sign in to comment.