Merge pull request 'Menambah langkah penerbitan paket' (#12) from pengembangan into main
Reviewed-on: #12
This commit was merged in pull request #12.
This commit is contained in:
commit
f40b309886
2 files changed
+44
-1
No files matched your search
@@ -0,0 +1,43 @@
|
|||||||
|
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
|
||||||
|
needs: persiapan
|
||||||
|
steps:
|
||||||
|
- name: Unduh program
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Unduh pnpm
|
||||||
|
uses: pnpm/action-setup@v6
|
||||||
|
with:
|
||||||
|
version: 10
|
||||||
|
|
||||||
|
- name: Unggah program
|
||||||
|
run: |
|
||||||
|
pnpm i
|
||||||
|
npm config set @${{ needs.persiapan.outputs.organisasi }}:registry=https://${{ vars.ALAMAT_GITEA }}/api/packages/${{ needs.persiapan.outputs.organisasi }}/npm/
|
||||||
|
npm config set -- '//${{ vars.ALAMAT_GITEA }}/api/packages/${{ needs.persiapan.outputs.organisasi }}/npm/:_authToken' "${{ secrets.KUNCI_PENERBITAN }}"
|
||||||
|
npm publish
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "tauri-plugin-bluclas-api",
|
"name": "@segubi/tauri-plugin-bluclas-api",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"author": "Rizky Denianto",
|
"author": "Rizky Denianto",
|
||||||
"description": "",
|
"description": "",
|
||||||
|
|||||||
Reference in new issue
Block a user