Skip to content

chore(update): patch release 2.14.1 🐛 #111

chore(update): patch release 2.14.1 🐛

chore(update): patch release 2.14.1 🐛 #111

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install dependencies
run: yarn
- name: Build app
run: yarn build
- name: Run tests
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Publish NPM
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false
run: cd dist && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish NPM BETA
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == true
run: cd dist && npm publish --access public --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
# - name: Set up package for GPR
# run: yarn gpr:setup
# - name: Use GPR
# uses: actions/setup-node@master
# with:
# node-version: 13
# registry-url: https://npm.pkg.github.com/
# scope: 'bartholomej'
# - name: Publish to GitHub Package Registry
# run: |
# cd dist
# npm publish
# env:
# NODE_AUTH_TOKEN: ${{github.token}}