Skip to content

Omit facetec

Omit facetec #23

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
node-version: [16.x]
steps:
- name: πŸ‘‰πŸΌ Checkout
uses: actions/checkout@v2
with:
# pulls all commits (needed for lerna / semantic release to correctly version) β€” see https://github.com/lerna/lerna/issues/2542
fetch-depth: 0
- name: πŸ€– Git Bot Identity
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
- name: πŸ“¦οΈ Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
scope: '@mifiel'
- name: 🚚 Install dependencies
run: yarn install
- name: πŸ‘· Build packages
run: yarn build
- name: πŸ”– Release New Version
run: yarn release:version --yes
- uses: actions/setup-node@v2
with:
registry-url: https://npm.pkg.github.com
scope: '@mifiel'
- name: πŸ“¦ Publish to Github Packages
run: yarn release:publish from-package --no-verify-access --registry https://npm.pkg.github.com --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v2
with:
registry-url: https://registry.npmjs.org
scope: '@mifiel'
- name: πŸ“¦ Publish to NPM
run: yarn release:publish from-package --no-verify-access --registry https://registry.npmjs.org --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}