Skip to content

tag release

tag release #9

Workflow file for this run

name: tag release
on:
workflow_dispatch:
inputs:
core:
type: boolean
description: publish jquery-core library
apexcharts:
type: boolean
description: publish jquery-apexcharts library
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: oneteme/automation-scripts/.github/actions/sonar-npm-scan@main
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
scope: '@oneteme'
- uses: oneteme/automation-scripts/.github/actions/npm-deploy@main
if: ${{ inputs.core }}
with:
package: 'jquery-core'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: oneteme/automation-scripts/.github/actions/npm-deploy@main
if: ${{ inputs.apexcharts }}
with:
package: 'jquery-apexcharts'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: oneteme/automation-scripts/.github/actions/npm-project-version@main
id: prj_ver
outputs: # take global project version
version: ${{ steps.prj_ver.outputs.version }}
release:
needs: deploy
runs-on: ubuntu-latest
steps:
- uses: oneteme/automation-scripts/.github/actions/create-release-notes@main
with:
version: ${{ needs.deploy.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pages:
needs: release
runs-on: ubuntu-latest
permissions: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: oneteme/automation-scripts/.github/actions/npm-github-page@main
with:
app-name: 'jquery-charts'