Skip to content

Commit

Permalink
doc: fix typo
Browse files Browse the repository at this point in the history
chore: fix publish workflow

chore: allow publish workflow to push tags

chore: update publish workflow

chore: update publish workflow

chore: update publish workflow

chore: update publish workflow

chore: update publish workflow

chore: change publish workflow

chore: publish workflow trigger auto merge

chore: publish workflow update
  • Loading branch information
sebastianwessel committed Feb 25, 2024
1 parent e542a95 commit 5600ab5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 12 deletions.
37 changes: 29 additions & 8 deletions .github/workflows/release_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
build:
environment: publish_version
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -49,25 +50,45 @@ jobs:
run: |
npm version ${{ inputs.version }} --no-git-tag-version
npm version ${{ inputs.version }} --no-git-tag-version --workspaces
scripts/commitVersion.sh
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
echo New version:
echo $(node -p -e "require('./package.json').version")
new_version=$(node -p -e "require('./package.json').version")
new_branch=purista_v$new_version
git checkout -b $new_branch
git push origin -u $new_branch
echo "new_version=$new_version" >> $GITHUB_OUTPUT
echo "new_branch=$new_branch" >> $GITHUB_OUTPUT
id: bump_version
- name: Add Tag
run: |
git tag ${{ steps.bump_version }}
- name: Dry run publish
run: |
npm publish --access public --dry-run --workspaces
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Commit 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: ${{ steps.bump_version.outputs.new_branch }}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Add Tag
run: |
git restore .
git clean -f
git pull
git tag -a "v${{ steps.bump_version.outputs.new_version }}" -m "v${{ steps.bump_version.outputs.new_version }}"
git push origin --follow-tags
- name: create pull request
run: |
git push
- name: Publish
gh pr create -B master -H ${{ steps.bump_version.outputs.new_branch }} --title 'Merge ${{ steps.bump_version.outputs.new_branch }} into master' --body 'Created by Github action'
gh pr merge ${{ steps.bump_version.outputs.new_branch }} --rebase --auto
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to NPM
run: npm publish --access public --workspaces
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 3 additions & 3 deletions scripts/commitVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ do
echo $CONTENT > ./packages/${dir##*/}/src/version.ts
done

git add .
git commit -am "chore: bump versions to $NODE_VERSION" -S
git tag -a v$NODE_VERSION -m "v$NODE_VERSION"
#git add .
#git commit -am "chore: bump versions to $NODE_VERSION" -S
#git tag -a v$NODE_VERSION -m "v$NODE_VERSION"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Temporal
description: Learn how to user combine your PURISTA application with Temporal.
description: Learn how to combine your PURISTA application with Temporal.
order: 601000
---

Expand Down

0 comments on commit 5600ab5

Please sign in to comment.