Skip to content

feat: add assert throw binding (#89) #107

feat: add assert throw binding (#89)

feat: add assert throw binding (#89) #107

on:
push:
branches:
- "main"
- "release/*"
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Extract Branch Name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ github.token }}
pull-request-title-pattern: "chore: release ${version}"
release-type: node
package-name: rudder-workflow-engine
default-branch: ${{ steps.extract_branch.outputs.branch }}
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false},{"type":"refactor","section":"Miscellaneous","hidden":false},{"type":"test","section":"Miscellaneous","hidden":false},{"type":"doc","section":"Documentation","hidden":false}]'
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
# The logic below handles the npm publication:
- name: Checkout
uses: actions/checkout@v3
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
if: ${{ steps.release.outputs.release_created }}
- name: Install Dependencies
run: npm ci
if: ${{ steps.release.outputs.release_created }}
- name: Build Package
run: npm run build
if: ${{ steps.release.outputs.release_created }}
- name: Configure NPM
run: npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
- name: Publish Package to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}