diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5fd0188c..0f7957c3 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -19,8 +19,5 @@ jobs: name: Install pnpm with: version: 8 - run_install: false - - name: Install packages - run: pnpm install - 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..64c127d1 --- /dev/null +++ b/.github/workflows/pr-release.yml @@ -0,0 +1,30 @@ +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 + - 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