Skip to content

Commit

Permalink
feat: add script to generate changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Rong Sen Ng (motss) <wes.ngrongsen@gmail.com>
  • Loading branch information
motss committed Mar 10, 2022
1 parent 46a4848 commit 70534f8
Show file tree
Hide file tree
Showing 5 changed files with 1,591 additions and 21 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,29 +66,15 @@ jobs:
run: |
npm ci
# - name: Publish to npm (Prerelease)
# if: contains(github.ref, '-') == true
# run: |
# npm publish . --tag=next

# - name: Publish to npm
# if: contains(github.ref, '-') == false
# run: |
# npm publish .

- name: Generate changeset then publish to npm (Prerelease)
- name: Publish to npm (Prerelease)
if: contains(github.ref, '-') == true
id: changesets
uses: changesets/action@v1
with:
publish: npm publish . --tag=next
run: |
npm publish . --tag=next
- name: Generate changeset then publish to npm
- name: Publish to npm
if: contains(github.ref, '-') == false
id: changesets
uses: changesets/action@v1
with:
publish: npm publish .
run: |
npm publish .
# See https://github.com/actions/setup-node/issues/73.
# - name: Setup node@${{ matrix.target }}
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ foreground-scripts=true
preid=rc
progress=true
quiet=true
sign-git-tag=true
update-binary=true
Loading

0 comments on commit 70534f8

Please sign in to comment.