-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (35 loc) · 1021 Bytes
/
publish-func.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
name: Full CI/CD
on:
push:
branches: [master]
pull_request:
branches: [master]
release:
types: [created]
jobs:
Release:
name: Build, test and release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18.15'
registry-url: 'https://registry.npmjs.org'
- name: Install func CLI 🛠️
run: npm i -g azure-functions-core-tools@4 --unsafe-perm true
- name: Install dependencies 🛠️
run: npm ci
- name: Build project 👷♂️🏗️
run: npm run build:all
- name: Unit Testing 🧪
run: npm run test:all
- name: E2E Testing 🧪
run: npm run e2e:all
- name: Publish package on NPM 📦
if: ${{ github.event_name == 'release' }}
run: npm publish dist/packages/func --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}