-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (37 loc) · 1.44 KB
/
publish.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
name: Publish
on:
push:
tags:
- '**' # Listen to push of every tag format, including hierarchical tags like v1.0/beta
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Create release
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
- name: Install dependencies
run: |
cd lib/functions/assets-cleanup && yarn install --frozen-lockfile && yarn install-layer && cd ../../..
cd lib/functions/access-logs-analysis/group-by-date && yarn install --frozen-lockfile && yarn install-layer && cd ../../../..
cd lib/functions/access-logs-analysis/partitioning && yarn install --frozen-lockfile && yarn install-layer && cd ../../../..
yarn install --frozen-lockfile
- name: Build project
run: |
cd lib/functions/assets-cleanup && yarn build && cd ../../..
cd lib/functions/access-logs-analysis/group-by-date && yarn build && cd ../../../..
cd lib/functions/access-logs-analysis/partitioning && yarn build && cd ../../../..
yarn build
- name: Publish
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}