Skip to content

Release

Release #1

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: "<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease"
required: true
jobs:
Release-To-NPM:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
always-auth: true
node-version: '18.12.1'
registry-url: 'https://registry.npmjs.org'
- run: |
echo "Installing Packages"
yarn
echo "Running Tests"
yarn run test
echo "Building Library"
yarn run build
git config --global user.name 'Release Workflow'
git config --global user.email 'release-workflow@users.noreply.github.com'
echo "Incrementing version"
yarn version ${{ github.event.inputs.version }}
echo "Pushing Version Change"
git push --follow-tags
echo "Publishing to NPM"
- run: yarn run publish:packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}