Skip to content

release of v10.99.0 (#6708) #329

release of v10.99.0 (#6708)

release of v10.99.0 (#6708) #329

Workflow file for this run

name: Eufemia Release
on:
push:
branches:
- 'release'
- 'portal'
- 'beta'
- 'alpha'
- 'next'
- '*.x'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: write # Required for semantic-release to push tags and changelog
issues: write # Required for semantic-release to comment on issues
pull-requests: write # Required for semantic-release to comment on PRs
id-token: write # Required for npm provenance
env:
GH_EMAIL: ${{ secrets.GH_EMAIL }}
GH_NAME: ${{ secrets.GH_NAME }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}
FIGMA_ICONS_FILE: ${{ secrets.FIGMA_ICONS_FILE }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }}
ALGOLIA_SEARCH_KEY: ${{ secrets.ALGOLIA_SEARCH_KEY }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
jobs:
action:
name: Run release and deploy
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
persist-credentials: false
fetch-depth: 2
- name: Use Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version-file: 'package.json'
registry-url: 'https://registry.npmjs.org'
- name: Use node_modules cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
id: modules-cache
with:
path: node_modules
key: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-modules-
- name: Install dependencies
if: steps.modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Audit dependencies
run: yarn workspace @dnb/eufemia audit:ci
- name: Prebuild Library
run: yarn workspace @dnb/eufemia prebuild:ci
- name: Build portal
if: (github.ref == 'refs/heads/release' ||
github.ref == 'refs/heads/portal')
run: yarn workspace dnb-design-system-portal build:ci
- name: Deploy portal
if: (github.ref == 'refs/heads/release' ||
github.ref == 'refs/heads/portal')
uses: peaceiris/actions-gh-pages@e9c66a37f080288a11235e32cbe2dc5fb3a679cc # v4
with:
personal_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./packages/dnb-design-system-portal/public
- name: Postbuild Library
run: yarn workspace @dnb/eufemia postbuild:ci
- name: Release
if: (github.ref == 'refs/heads/release' ||
github.ref == 'refs/heads/beta' ||
github.ref == 'refs/heads/alpha' ||
github.ref == 'refs/heads/next')
run: yarn workspace @dnb/eufemia publish:ci