Skip to content

release_master

release_master #89

Workflow file for this run

name: Release
on:
push:
branches:
- master
repository_dispatch:
types: [release_master]
jobs:
release:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: master
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Upgrade npm
run: npm i -g npm
- name: Install Dependencies
run: npm ci
- name: Cache Nx
uses: actions/cache@v3
with:
path: node_modules/.cache/nx
key: cache-1-nx-${{ inputs.package }}-${{ hashFiles('package-lock.json') }}-${{ github.sha }}
restore-keys: |
cache-1-nx-${{ inputs.package }}-${{ hashFiles('package-lock.json') }}-
- name: Git Config
run: |
git config --global user.email "[email protected]"
git config --global user.name "Restorecommerce Bot"
- name: Build
run: npm run build -- --verbose
- name: NPM Token
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > .npmrc
- name: Release
run: |
git status
npx lerna publish --no-verify-access --no-private --conventional-commits --yes --loglevel debug
- name: Sync next branch
run: |
git status
git checkout next
git merge --ff-only master
git push -u origin next