bump version in package.json to v2.32.5 #1238
Workflow file for this run
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
name: Publish npm Package | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
publish: | |
if: startsWith(github.head_ref, 'releases/') && github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Checkout and Setup Node | |
uses: ./.github/actions/checkout-and-setup | |
- name: Build package | |
run: pnpm package | |
- name: Publish package to npm | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
create_release: | |
needs: publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Prepare checkout token | |
id: generate_token | |
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 | |
with: | |
app_id: ${{ secrets.TEMPORAL_CICD_APP_ID }} | |
private_key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }} | |
- name: Create Release | |
run: | | |
version=`cat ./package.json | jq -r .version` | |
echo "latest version: $version" | |
tag="v$version" | |
echo "creating release: $tag" | |
gh release create $tag --generate-notes | |
env: | |
GH_TOKEN: ${{ steps.generate_token.outputs.token }} |