Skip to content

Commit 0c144c1

Browse files
committed
fix: release script
1 parent bb5a444 commit 0c144c1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
path: packages/${{ matrix.package }}
5555
token: ${{ secrets.GITHUB_TOKEN }}
5656
release-type: node
57-
package-name: '@web-std/${{ matrix.package }}'
57+
package-name: "@web-std/${{ matrix.package }}"
5858
monorepo-tags: true
5959
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"refactor","section":"Changes","hidden":false},{"type":"chore","section":"Changes","hidden":false}]'
6060
command: release-pr
@@ -68,12 +68,12 @@ jobs:
6868
package: ${{fromJson(needs.changeFinder.outputs.nodePaths)}}
6969
steps:
7070
- uses: GoogleCloudPlatform/release-please-action@v2
71-
id: tag-release
71+
id: release
7272
with:
7373
path: packages/${{ matrix.package }}
7474
token: ${{ secrets.GITHUB_TOKEN }}
7575
release-type: node
76-
package-name: '@web-std/${{ matrix.package }}'
76+
package-name: "@web-std/${{ matrix.package }}"
7777
monorepo-tags: true
7878
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"refactor","section":"Changes","hidden":false},{"type":"chore","section":"Changes","hidden":false}]'
7979
command: github-release
@@ -93,7 +93,9 @@ jobs:
9393
uses: bahmutov/npm-install@v1
9494
if: ${{ steps.release.outputs.release_created }}
9595
- name: Publish
96-
run: npm publish --prefix packages/${{matrix.package}} --access=public
96+
run: |
97+
cd packages/${{ matrix.package }}
98+
npm publish --access=public
9799
env:
98100
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
99101
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)