Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

release_master

release_master #9

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: Install Dependencies
run: npm ci
- name: Git Config
run: |
git config --global user.email "bot@restorecommerce.io"
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 publish --no-verify-access --no-private --conventional-commits --yes --loglevel debug
- name: Sync next branch
run: |
git status
git checkout next
git merge master
git push -u origin next