From 6346b114d1a3f139992d7aa531c086e627b1329f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=90=E8=97=A4=E6=98=AD=E6=96=87?= Date: Sat, 26 Aug 2023 22:05:31 +0900 Subject: [PATCH] pre release ci --- .github/workflows/check.yml | 4 +--- .github/workflows/pr-release.yml | 31 +++++++++++++++++++++++++++++++ .npmrc | 2 -- 3 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/pr-release.yml delete mode 100644 .npmrc diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5fd0188c..438350c6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -19,8 +19,6 @@ jobs: name: Install pnpm with: version: 8 - run_install: false - - name: Install packages - run: pnpm install + run_install: true - name: Show coverage run: pnpm check diff --git a/.github/workflows/pr-release.yml b/.github/workflows/pr-release.yml new file mode 100644 index 00000000..0ef82dad --- /dev/null +++ b/.github/workflows/pr-release.yml @@ -0,0 +1,31 @@ +name: PR Release + +on: + pull_request: + branches: [main] + +jobs: + pr-release: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install and cache nodejs + uses: actions/setup-node@v3 + with: + node-version: '18' + - uses: pnpm/action-setup@v2 + name: Install pnpm + with: + version: 8 + run_install: true + - name: Build + run: pnpm build + - name: Publish + uses: kotarella1110/pr-voyager@v0 + with: + publish: pnpm publish -r + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.npmrc b/.npmrc deleted file mode 100644 index d9ca8860..00000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -engine-strict=true -save-exact=true