-
Notifications
You must be signed in to change notification settings - Fork 2.1k
61 lines (51 loc) · 1.8 KB
/
continuous-delivery-storefront.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
58
59
60
61
name: Continuous Delivery (Storefront)
on:
workflow_dispatch:
push:
branches:
- feat/UST-1087-nuxt-package
jobs:
# publish-next:
# name: Publish Next.js
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# fetch-depth: 0 # fetch all history so multiple commits can be scanned
# - name: Install dependencies
# shell: bash
# working-directory: packages/storefront
# run: HUSKY=0 yarn --frozen-lockfile
# - name: Build Next.js
# run: yarn build
# working-directory: packages/storefront/packages/next
# - name: Set npm token
# run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_RELEASE_TOKEN }}
# - name: Publish Next.js
# run: yarn publish --non-interactive --access public
# working-directory: packages/storefront/packages/next
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}
publish-nuxt:
name: Publish Nuxt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch all history so multiple commits can be scanned
- name: Install dependencies
shell: bash
working-directory: packages/storefront
run: HUSKY=0 yarn --frozen-lockfile
- name: Build Nuxt
run: yarn build
working-directory: packages/storefront/packages/nuxt
- name: Set npm token
run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_RELEASE_TOKEN }}
- name: Publish Nuxt
run: yarn publish --non-interactive --access public
working-directory: packages/storefront/packages/nuxt
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}