fix/ci-pub #13
1 changed files with 4 additions and 9 deletions
|
|
@ -56,7 +56,7 @@ jobs:
|
|||
container: oven/bun:1
|
||||
steps:
|
||||
- name: Install git
|
||||
run: apt-get update && apt-get install -y git
|
||||
run: apt-get update && apt-get install -y git nodejs npm
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -64,21 +64,16 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Download ${{ steps.meta.outputs.name }}.zip
|
||||
- name: Download Artifacts
|
||||
uses: https://code.forgejo.org/forgejo/download-artifact@v4
|
||||
with:
|
||||
name: ${{ steps.meta.outputs.name }}.zip
|
||||
name: ${{ needs.build.outputs.artifact_name }}.zip
|
||||
path: packages/library/dist
|
||||
|
||||
- name: Set package version
|
||||
run: bun pm version "${GITHUB_REF_NAME#v}" --no-git-tag-version
|
||||
working-directory: packages/library
|
||||
|
||||
- name: Debug token presence
|
||||
run: '[ -n "$FORGEJO_TOKEN" ] && echo "token set, length: ${#FORGEJO_TOKEN}" || echo "token EMPTY"'
|
||||
env:
|
||||
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
||||
|
||||
- name: Configure registry auth
|
||||
run: echo "//git.mcpeakdev.com/api/packages/mcpeakdev/npm/:_authToken=${FORGEJO_TOKEN}" > .npmrc
|
||||
working-directory: packages/library
|
||||
|
|
@ -86,7 +81,7 @@ jobs:
|
|||
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
||||
|
||||
- name: Publish package
|
||||
run: bun publish --registry https://git.mcpeakdev.com/api/packages/mcpeakdev/npm/
|
||||
run: npm publish --registry https://git.mcpeakdev.com/api/packages/mcpeakdev/npm/
|
||||
working-directory: packages/library
|
||||
|
||||
publish-docs:
|
||||
|
|
|
|||
Loading…
Reference in a new issue