Skip to content

Commit

Permalink
feat: create changeset and adjust workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
emosheeep committed Jan 23, 2024
1 parent 814f096 commit a97b42a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/wicked-kiwis-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"lockfile-conflicts": minor
---

feat: first release.
14 changes: 12 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,18 @@ jobs:
version: 8
run_install: true

- name: Create Release Pull Request or Publish to npm
- name: Version Package
id: versioning
run: |
npx changeset version
echo "::set-output name=tag::v$(node -pe "require('./package.json').version")"
git restore .
- name: Create Release Pull Request and Publish to npm
uses: changesets/action@v1
env: # Need your own Token
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
commit: "chore: release ${{ steps.versioning.outputs.tag }}"
title: "chore: release ${{ steps.versioning.outputs.tag }}"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lockfile-conflicts",
"version": "0.1.0",
"version": "0.0.0",
"type": "module",
"description": "A custom merge driver, aims to handle lockfile conflicts automatically in merge/rebase process.",
"author": "秦旭洋 <qinxuyang@bytedance.com>",
Expand Down

0 comments on commit a97b42a

Please sign in to comment.