From 29548d25a3114c887e0da53aad012d1d3b6e473a Mon Sep 17 00:00:00 2001 From: Sotatek-TuLe2 Date: Tue, 9 Jul 2024 14:32:20 +0700 Subject: [PATCH 1/2] add cicde workflow --- .github/workflows/publish.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..47b2890 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ +name: "package publishing" + +on: + push: + branches: ["implement-cicd"] + +jobs: + build: + permissions: write-all + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + + - name: Install dependencies & build package + run : | + yarn install && yarn build + + - name: publish package + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + run: | + npx pnpm --filter @kaiachain/kaia-design-system -r publish --publish-branch main --no-git-check --access=public \ No newline at end of file From 3df9cfa0914c8403ea4b1b14e8643900797ad706 Mon Sep 17 00:00:00 2001 From: Sotatek-TuLe2 Date: Tue, 9 Jul 2024 14:36:53 +0700 Subject: [PATCH 2/2] change pipeline trigger --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 47b2890..71171d6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,7 @@ name: "package publishing" on: push: - branches: ["implement-cicd"] + branches: ["main"] jobs: build: