Skip to content

Merge pull request #543 from tancredi/dependabot/npm_and_yarn/typescr… #56

Merge pull request #543 from tancredi/dependabot/npm_and_yarn/typescr…

Merge pull request #543 from tancredi/dependabot/npm_and_yarn/typescr… #56

Workflow file for this run

name: Release
on:
push:
branches: [master]
env:
FORCE_COLOR: 2
NODE: 20.x
jobs:
release:
if: "!contains(github.event.head_commit.message, 'skip ci') && github.repository == 'tancredi/fantasticon'"
name: Release
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '${{ env.NODE }}'
- name: Set up npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.os }}-node-v${{ env.NODE }}-
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release