Memperbaiki lokasi berkas penerbitan
This commit is contained in:
1 parent
77f0aefe88
commit
00aecd37e8
1 file changed
@@ -0,0 +1,36 @@
|
||||
name: Penerbitan Plugin
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
types: ["opened", "synchronize"]
|
||||
|
||||
jobs:
|
||||
persiapan:
|
||||
if: "!contains(gitea.event.head_commit.message, 'Merge pull request')"
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
organisasi: ${{ steps.var.outputs.organisasi }}
|
||||
steps:
|
||||
- name: Persiapan variabel
|
||||
id: var
|
||||
run: |
|
||||
echo "organisasi=$(echo '${{ gitea.repository }}' | cut -d'/' -f1)" \
|
||||
>> $GITEA_OUTPUT
|
||||
|
||||
penerbitan:
|
||||
if: "!contains(gitea.event.head_commit.message, 'Merge pull request')"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Unduh program
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Unggah program
|
||||
run: |
|
||||
npm config set @${{ needs.persiapan.outputs.organisasi }}:registry=https://git.segubi.com/api/packages/${{ needs.persiapan.outputs.organisasi }}/npm/
|
||||
npm config set -- '//git.segubi.com/api/packages/${{ needs.persiapan.outputs.organisasi }}/npm/:_authToken' "${{ secrets.KATA_SANDI_KUNCI_PENGUNGGAHAN }}"
|
||||
npm publish
|
||||
Reference in new issue
Block a user