Skip to content

Commit

Permalink
rollback and change workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ryu9663 committed Dec 28, 2023
1 parent e6ad0c6 commit 48b4ecc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 49 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "my-new-app-name",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down

0 comments on commit 48b4ecc

Please sign in to comment.