-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f5a34a
commit 9356432
Showing
2 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,22 +53,31 @@ jobs: | |
git config --global user.name '${{ vars.CI_COMMIT_AUTHOR}}' | ||
git config --global user.email '[email protected]' | ||
git config --global push.followTags true | ||
scripts/commitVersion.sh | ||
./scripts/commitVersion.sh | ||
echo New version: | ||
echo $(node -p -e "require('./package.json').version") | ||
new_version=$(node -p -e "require('./package.json').version") | ||
echo "new_version=$new_version" >> $GITHUB_OUTPUT | ||
id: bump_version | ||
- name: Commit version bump | ||
uses: planetscale/[email protected] | ||
with: | ||
commit_message: 'chore: bump ${{ inputs.version }} version to v${{ steps.bump_version.outputs.new_version }}' | ||
repo: ${{ github.repository }} | ||
branch: ${{ github.head_ref || github.ref_name }} | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- name: Add Tag | ||
run: | | ||
git tag ${{ steps.bump_version }} | ||
git tag -a "v${{ steps.bump_version.outputs.new_version }}" -m "v${{ steps.bump_version.outputs.new_version }}" | ||
- name: Dry run publish | ||
run: | | ||
npm publish --access public --dry-run --workspaces | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Commit version | ||
- name: Push to origin | ||
run: | | ||
git push origin --tags --follow-tags | ||
- name: Publish | ||
- name: Publish to NPM | ||
run: npm publish --access public --workspaces | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters