Skip to content

Commit

Permalink
ci: release workflow 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
drakang4 committed Aug 5, 2024
1 parent 9cdd78a commit 570dea2
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/cd.yaml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CD
name: Release

on:
push:
branches:
- '**'
- main

env:
# Node.js
Expand All @@ -22,14 +22,21 @@ jobs:
with:
version: 9

- name: Use Node.js ${{ env.NODE_VERSION }}
- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: ${{ env.NPM_REGISTRY_URL }}
cache: 'pnpm'

- name: Publish
- name: Install Dependencies
run: pnpm install

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm -r publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.READ_WRITE_NPM_TOKEN }}
run: pnpm -r publish --no-git-checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.READ_WRITE_NPM_TOKEN }}

0 comments on commit 570dea2

Please sign in to comment.