-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.11 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release
on:
push:
branches:
- master
workflow_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 clean-install
- 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: npx publish --no-verify-access --no-private --conventional-commits --yes --loglevel debug
- name: Sync next branch
run: |
git checkout next
git merge master
git push -u origin next