Merge pull request #142 from movableink/nicksteffens/sc-86341/color-a… #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'addon/**/*.js' | |
- 'addon/**/*.hbs' | |
- 'addon-test-support/*' | |
- 'app/**/*.scss' | |
- 'public/*' | |
workflow_dispatch: | |
inputs: | |
increment: | |
description: Override Default Version Increment | |
required: false | |
default: '' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Necessary to generate changelog from commit history | |
- uses: volta-cli/action@v1 | |
- name: git config | |
run: | | |
git config user.name "${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn config get cacheFolder)" | |
- uses: actions/cache@v2 | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- run: yarn install --immutable | |
- name: Configure NPM with auth token | |
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: yarn release ${{ github.event.inputs.increment }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |