-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (47 loc) · 1.93 KB
/
storefront-merge-to-main.yml
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
50
51
52
53
54
55
56
57
name: storefront-merge-to-main
on:
push:
branches: [main]
paths:
- "packages/storefront-events-**"
- ".github/workflows/storefront-merge-to-main.yml"
jobs:
storefront-merge-to-main:
name: storefront-merge-to-main
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: cache
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: node
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: install
run: yarn install --frozen-lockfile
- name: build
run: yarn build:qa --filter="@adobe/*"
- name: release storefront sdk
working-directory: ./packages/storefront-events-sdk
run: yarn release -- --skip.commit --skip.tag --release-as 0.0.0-${{ github.sha }}
- name: publish storefront sdk
working-directory: ./packages/storefront-events-sdk
run: yarn publish --access public --tag qa
env:
NODE_AUTH_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
- name: release storefront collector
working-directory: ./packages/storefront-events-collector
run: yarn release -- --skip.commit --skip.tag --release-as 0.0.0-${{ github.sha }}
- name: publish storefront collector
working-directory: ./packages/storefront-events-collector
run: yarn publish --access public --tag qa
env:
NODE_AUTH_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}