-
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (43 loc) · 1.31 KB
/
cd.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
name: CD
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install ⚙️
run: npm ci
- name: Build 🛠
run: npm run build:ci
- name: Test 📋
run: npm run test:ci
- name: Publish 📢
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
repository-name: BugSplat-Git/bugsplat-git.github.io
branch: gh-pages
folder: dist/ngb-filterable-dropdown-example
target-folder: ngb-filterable-dropdown-example
token: ${{ secrets.GH_TOKEN }}