Skip to content

Commit

Permalink
build: update client publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezanet committed Nov 12, 2023
1 parent 6bfbae4 commit d3afa59
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/client-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
working-directory: client
steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -30,16 +31,14 @@ jobs:
id: package-version
run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV

- name: Copy README to client directory
run: cp ../README.md .
working-directory: client

- name: Publish to npm
run: yarn publish --access public
run: yarn publish --new-version ${{ env.VERSION }} --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Create Tag
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git tag c-v${{ env.VERSION }}
git push origin c-v${{ env.VERSION }}

0 comments on commit d3afa59

Please sign in to comment.