From 0a018254a02cf4d4ecde99bd6449952b40bc6b1f Mon Sep 17 00:00:00 2001 From: love1ace Date: Fri, 20 Sep 2024 17:28:49 +0900 Subject: [PATCH] =?UTF-8?q?npm=20=EC=9E=90=EB=8F=99=20=EB=B0=B0=ED=8F=AC?= =?UTF-8?q?=20=EC=9B=8C=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0927800..49c0e81 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,22 +14,30 @@ jobs: - name: Check out the repository uses: actions/checkout@v3 - # 2. Node.js 설치 (원하는 Node 버전을 설정 가능) + # 2. Node.js 설치 - name: Setup Node.js uses: actions/setup-node@v3 with: node-version: '18' cache: 'npm' - # 3. npm 인증 설정 (NPM_TOKEN을 이용해 자동 로그인) + # 3. npm 인증 설정 - name: Authenticate to npm run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - # 4. npm 설치 + # 4. 패치 버전 자동 증가 + - name: Bump version and push tag + run: | + npm version patch # 패치 버전 0.0.1 증가 + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git push origin main --tags + + # 5. npm 설치 - name: Install dependencies run: npm install - # 5. npm publish 실행 + # 6. npm publish 실행 - name: Publish package run: npm publish env: