From 48b4ecc7da1bbed24950e819daf780a44c866600 Mon Sep 17 00:00:00 2001 From: june Date: Thu, 28 Dec 2023 13:10:38 +0900 Subject: [PATCH] rollback and change workflow --- .github/workflows/preview.yaml | 11 +++++++- .github/workflows/production.yaml | 47 ------------------------------- package.json | 2 +- 3 files changed, 11 insertions(+), 49 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 92136ec..e6e1cc2 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -16,7 +16,16 @@ jobs: - name: Install pnpm run: npm install -g pnpm - name: Pull Vercel Environment Information - run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + run: + vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + # Install Dependencies + - name: Install Dependencies + run: + pnpm install + # Run build + - name: Build Library + run: pnpm run build + - name: Build Project Artifacts run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index 355bf34..e96241a 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -20,53 +20,6 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 16 - - - name: Set new patch version - if: "!contains(github.event.head_commit.message, '+m')" - run: "npm version patch -m 'ver: %s'" - - - name: Set new minor version - if: "contains(github.event.head_commit.message, '+minor')" - run: "npm version minor -m 'ver: %s'" - - - name: Set new major version - if: "contains(github.event.head_commit.message, '+major')" - run: "npm version major -m 'ver: %s'" - - - name: push branch - run: git push - - uses: actions/upload-artifact@v2 - with: - name: src - path: ./ - - tag: - needs: version_up - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Pull branch - run: git pull - - - name: Get version - id: get-version - uses: beaconbrigade/package-json-version@v0.3 - with: - path: . - - - name: Create release & tag - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.get-version.outputs.version }} - release_name: ${{ steps.get-version.outputs.version }} - - Deploy-Production: - needs: ["tag"] - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 - name: Install Vercel CLI run: npm install --global vercel@latest diff --git a/package.json b/package.json index a222ba5..472e7f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-new-app-name", - "version": "1.0.1", + "version": "1.0.2", "private": true, "scripts": { "dev": "next dev",