Skip to content

Commit

Permalink
refactor: update release workflow with env var and allow dirty publish
Browse files Browse the repository at this point in the history
This commit updates the GitHub Actions release workflow. It introduces
an environment variable PACKAGE_DIR to specify the directory of the
package. The publish command is also updated to allow a dirty state.
Additionally, a step is added to copy the LICENSE file to the package
directory before publishing.
  • Loading branch information
ryoppippi committed Jul 14, 2024
1 parent 609c6f0 commit c7c566b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ permissions:

jobs:
jsr:
env:
PACKAGE_DIR: ${{github.workspace}}/packages/unplugin-typia
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
Expand All @@ -23,8 +25,11 @@ jobs:
with:
bun-version: latest
- run: bun i --frozen-lockfile
- run: bun run publish
working-directory: packages/unplugin-typia
- name: copy files
run: |
cp LICENSE $PACKAGE_DIR
- run: bun run publish --allow-dirty
working-directory: ${{env.PACKAGE_DIR}}

release:
needs:
Expand Down

0 comments on commit c7c566b

Please sign in to comment.