diff --git a/.changeset/wicked-kiwis-talk.md b/.changeset/wicked-kiwis-talk.md new file mode 100644 index 0000000..ebee31b --- /dev/null +++ b/.changeset/wicked-kiwis-talk.md @@ -0,0 +1,5 @@ +--- +"lockfile-conflicts": minor +--- + +feat: first release. diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d9a2e37..e087f1d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }}" diff --git a/package.json b/package.json index a8d09a7..b0b690a 100644 --- a/package.json +++ b/package.json @@ -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": "秦旭洋 ",