Skip to content

14.3.0

14.3.0 #242

Workflow file for this run

name: Npm.js deploy
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- run: echo ${VERSION}
- name: Install dependencies
run: npm ci
- name: Lint package
run: npm run lint
- name: Test package
run: npm test
- name: Build package
run: npm run build
- name: Define NPM tag
run: |
if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then
echo "NPM_TAG=next"
elif [[ ${VERSION} == *"patch"* ]]; then
echo "NPM_TAG=patch"
else
echo "NPM_TAG=latest"
fi >> $GITHUB_ENV
echo ${NPM_TAG}
- name: Create package version
run: npm version ${VERSION/-patch/} --no-git-tag-version --save --allow-same-version
working-directory: ./
- name: Publish igniteui-theming
run: npm publish --tag ${NPM_TAG}
working-directory: ./
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}