Versioning Updates: Update rules logics and add BuildId to Worker table #1025
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: 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: ${{ secrets.COMMANDER_DATA_TOKEN }} |