Skip to content

Release

Release #713

Workflow file for this run

name: Release
on:
# push:
# branches: [ main ]
workflow_dispatch:
concurrency: release
env:
GIT_AUTHOR_NAME: eg-oss-ci
GIT_AUTHOR_EMAIL: oss@expediagroup.com
GIT_COMMITTER_NAME: eg-oss-ci
GIT_COMMITTER_EMAIL: oss@expediagroup.com
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.0.1
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: 'package-lock.json'
# Verify the build is successful
- run: npm ci
- run: npm run build
- run: npm test
release:
needs: test
runs-on: ubuntu-latest
outputs:
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
new_release_major_version: ${{ steps.semantic.outputs.new_release_major_version }}
new_release_minor_version: ${{ steps.semantic.outputs.new_release_minor_version }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4.0.1
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6.1.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
# Release the next version
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v4.0.0
env:
GH_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
with:
semantic_version: 18.0.1
extra_plugins: |
@semantic-release/changelog@6.0.1
@semantic-release/github@8.0.2
@semantic-release/git@10.0.1
conventional-changelog-conventionalcommits@4.6.1