Skip to content

Commit

Permalink
Merge pull request #3 from kaiachain/implement-cicd
Browse files Browse the repository at this point in the history
add cicd workflow
  • Loading branch information
Sotatek-TuLe2 authored Jul 9, 2024
2 parents 955c4ad + 3df9cfa commit 65bf63b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "package publishing"

on:
push:
branches: ["main"]

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

0 comments on commit 65bf63b

Please sign in to comment.