Skip to content

Allow fallback to default syntax with fallbackPrefix on individual messages #84

Allow fallback to default syntax with fallbackPrefix on individual messages

Allow fallback to default syntax with fallbackPrefix on individual messages #84

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
node-version: 18
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node ${{ env.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.node-version }}
- id: find-yarn-cache-folder
name: Find Yarn's cache folder
run: echo "path=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Cache Yarn's cache folder
uses: actions/cache@v3
with:
path: ${{ steps.find-yarn-cache-folder.outputs.path }}
key: yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-
yarn-cache-folder-os-${{ runner.os }}-
- name: Install dependencies
run: yarn install --immutable
- name: Lint
run: yarn lint
- name: Test
run: yarn test
- name: Build for production
run: yarn build:prod
- name: Pack
run: cd dist && npm pack
- uses: actions/upload-artifact@v3
with:
name: npm-package
path: dist/*.tgz