Skip to content

Commit

Permalink
Update publish workflow to include version tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
komiya-atsushi committed Jan 11, 2024
1 parent a85dc54 commit d9b572f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ jobs:
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
- name: Bump version
run: npm -w packages/bolt-s3 version ${{ inputs.target_element }}
- name: Get version string
id: get-version-string
run: echo "version=$(jq -r .version packages/bolt-s3/package.json)" >> "$GITHUB_OUTPUT"
- run: git add package-lock.json packages/bolt-s3/package.json
- run: git commit -m "v${{ steps.get-version-string.outputs.version }}"
- run: git tag "v${{ steps.get-version-string.outputs.version }}"
- run: npm ci
- run: make publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git push
- run: git push --tags
- run: git push "v${{ steps.get-version-string.outputs.version }}"

0 comments on commit d9b572f

Please sign in to comment.