From d51ed8cb192c77bde805c20c45fc3188d9cf10ea Mon Sep 17 00:00:00 2001 From: Giorgio Boa <35845425+gioboa@users.noreply.github.com> Date: Sun, 4 Aug 2024 21:41:25 +0200 Subject: [PATCH 1/2] feat: create CI-CD.yml --- .github/workflows/CI-CD.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/CI-CD.yml diff --git a/.github/workflows/CI-CD.yml b/.github/workflows/CI-CD.yml new file mode 100644 index 0000000..1807049 --- /dev/null +++ b/.github/workflows/CI-CD.yml @@ -0,0 +1,27 @@ +name: pkg-pr-new - Publish Any Commit +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Build + run: pnpm build + + - run: pnpx pkg-pr-new publish --compact + working-directory: ./lib + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 8a734d499eee3759edd8a2d9e0bf0eaa3eef382d Mon Sep 17 00:00:00 2001 From: gioboa Date: Sun, 4 Aug 2024 21:42:47 +0200 Subject: [PATCH 2/2] fix: remove wrong GH action --- .github/workflows /pkg-pr-new.yml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .github/workflows /pkg-pr-new.yml diff --git a/.github/workflows /pkg-pr-new.yml b/.github/workflows /pkg-pr-new.yml deleted file mode 100644 index 1807049..0000000 --- a/.github/workflows /pkg-pr-new.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: pkg-pr-new - Publish Any Commit -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install - - - name: Build - run: pnpm build - - - run: pnpx pkg-pr-new publish --compact - working-directory: ./lib - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}