Skip to content

v9.9.0 Add includesOwnedAudienceGroups Parameter to Audience API #334

v9.9.0 Add includesOwnedAudienceGroups Parameter to Audience API

v9.9.0 Add includesOwnedAudienceGroups Parameter to Audience API #334

Workflow file for this run

name: Release Node.js Package
on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: 'The version to release'
required: true
jobs:
release-package:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
issues: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm install
- name: Update version in package.json, package-lock.json, and lib/version.ts
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
VERSION=${{ github.event.inputs.version }}
else
VERSION=${{ github.event.release.tag_name }}
fi
VERSION=${VERSION#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
node ./scripts/update-version.mjs $VERSION
- run: npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_2 }}
- name: Create GitHub Issue on Failure
if: failure()
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const { owner, repo } = context.repo;
const version = process.env.VERSION;
const issueTitle = `Release job for ${version} failed`;
const issueBody = `The release job failed. Please check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details.`;
const assignees = [context.actor];
await github.rest.issues.create({
owner,
repo,
title: issueTitle,
body: issueBody,
assignees
});
deploy-docs:
needs: [release-package]
permissions:
contents: read
pages: write
issues: write
id-token: write
uses: ./.github/workflows/deploy-doc.yml