chore(update): patch release 2.11.2 🐛 #97
Workflow file for this run
This file contains hidden or 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: Publish | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Use Node.js | |
uses: actions/setup-node@master | |
with: | |
node-version: 22 | |
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@v4 | |
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}} |