Skip to content

Commit e8f8184

Browse files
committed
feat: updated workflows
1 parent 55b3209 commit e8f8184

2 files changed

Lines changed: 20 additions & 19 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ jobs:
5151
5252
- name: Publish (dry-run)
5353
if: steps.check.outputs.exists == 'false'
54-
run: npm publish --dry-run
55-
env:
56-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
54+
run: npm publish --dry-run --access public
5755

5856
- name: Summary
5957
run: |

.github/workflows/version.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,24 @@ jobs:
4545
echo "version=$VERSION" >> $GITHUB_OUTPUT
4646
4747
- name: Create Pull Request
48-
uses: peter-evans/create-pull-request@v6
49-
with:
50-
token: ${{ secrets.GITHUB_TOKEN }}
51-
commit-message: "chore: bump version to v${{ steps.bump.outputs.version }}"
52-
title: "chore: release v${{ steps.bump.outputs.version }}"
53-
body: |
54-
## Release v${{ steps.bump.outputs.version }}
48+
env:
49+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
BRANCH="release/v${{ steps.bump.outputs.version }}"
52+
git checkout -b "$BRANCH"
53+
git add package.json package-lock.json
54+
git commit -m "chore: bump version to v${{ steps.bump.outputs.version }}"
55+
git push origin "$BRANCH"
56+
gh pr create \
57+
--base main \
58+
--head "$BRANCH" \
59+
--title "chore: release v${{ steps.bump.outputs.version }}" \
60+
--body "## Release v${{ steps.bump.outputs.version }}
5561
56-
This PR bumps the version to `${{ steps.bump.outputs.version }}` (${{ inputs.version_type }} release).
62+
This PR bumps the version to \`${{ steps.bump.outputs.version }}\` (${{ inputs.version_type }} release).
5763
58-
---
59-
*This PR was automatically created by the version workflow.*
60-
branch: release/v${{ steps.bump.outputs.version }}
61-
base: main
62-
labels: |
63-
release
64-
automated
65-
ci-release
64+
---
65+
*This PR was automatically created by the version workflow.*" \
66+
--label "release" \
67+
--label "automated" \
68+
--label "ci-release"

0 commit comments

Comments
 (0)