Skip to content

feat(packages/sui-segment-wrapper): add ga4 client id to segment events #23

feat(packages/sui-segment-wrapper): add ga4 client id to segment events

feat(packages/sui-segment-wrapper): add ga4 client id to segment events #23

name: Labeled Pull Requests
on:
pull_request:
types: [labeled]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
publish-tagged-packages:
name: Publish Tagged Packages to NPM
if: github.ref != 'refs/heads/master' && contains(github.event.pull_request.labels.*.name, 'feature')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install
run: |
npm ci
npx -y ultra-runner --raw --recursive prepublishOnly
- name: Get Files
id: files
uses: jitterbit/get-changed-files@v1
with:
format: 'json'
- name: Publish Packages
run: npm run publish-tagged-packages -- --tag '${{ github.event.pull_request.head.ref }}' --files '${{ steps.files.outputs.added_modified }}'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}