Skip to content

feat: bump to @openziti/libcrypto-js 0.24.0 (#357) #498

feat: bump to @openziti/libcrypto-js 0.24.0 (#357)

feat: bump to @openziti/libcrypto-js 0.24.0 (#357) #498

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build
on:
push:
branches: [ main ]
paths-ignore:
- 'package.json'
- 'CHANGELOG.md'
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
tags:
required: false
description: 'Misc tags'
jobs:
# -------------------------------------------------------------------------------
# Do a clean build, test, and publish
# -------------------------------------------------------------------------------
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Bump semver
if: github.ref == 'refs/heads/main'
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.GH_ACTION }}
git-message: 'chore(release): {version}'
preset: 'angular'
tag-prefix: 'v'
output-file: 'CHANGELOG.md'
skip-on-empty: true # do not alter semver when we push 'chore: ...' commits
release-count: 0 # ensure changelog is generated to contain ALL updates
- name: Pull newly bumped semver
if: github.ref == 'refs/heads/main'
run: git pull
- name: Setup .npmrc
if: github.ref == 'refs/heads/main'
# Setup .npmrc file to prepare for possible publish to npm
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Install
run: yarn install --immutable
- name: Build
run: yarn run build
# - name: Test
# run: npm test
# - name: Unit-test Coverage
# run: npm run coverage
# - name: Unit-test Coverage Report
# run: npm run coverage-report
# not yet
# - name: Publish beta release
# run: npm publish --tag next --access public
# if: github.ref != 'refs/heads/main'
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish production release
if: github.ref == 'refs/heads/main'
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}