Menambah langkah penerbitan paket
This commit is contained in:
1 parent
b13110616c
commit
77f0aefe88
2 files changed
+38
-2
No files matched your search
@@ -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
|
||||||
+2
-2
@@ -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": "",
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-typescript": "^12.3.0",
|
"@rollup/plugin-typescript": "^12.3.0",
|
||||||
"rollup": "^4.62.2",
|
"rollup": "^4.62.2",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^7.0.2",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user