Skip to content

15.2.2-alpha.1

15.2.2-alpha.1 #500

Workflow file for this run

name: Npm.js publish
on:
release:
types: [created]
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.CLASSIC_PAT_GITHUB }}
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: "https://registry.npmjs.org"
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- run: echo ${VERSION}
- name: Install packages
run: yarn install --frozen-lockfile
- name: Configure git auth for private submodules
env:
TOKEN: ${{ secrets.CLASSIC_PAT_GITHUB }}
run: git config --global url."https://x-access-token:${TOKEN}@github.com/".insteadOf "https://github.com/"
- name: Build MCP API docs
working-directory: packages/igniteui-mcp/igniteui-doc-mcp
run: npm run build:docs:all
- name: Build packages
run: |
npm run build-pack
node scripts/build-task.js
- name: Define npm tag
run: |
if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
echo ${NPM_TAG}
- name: Publish packages
# use npm run as yarn run changes the registry and publishes to https://registry.yarnpkg.com
run: npm run deploy ${NPM_TAG}