-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 925 Bytes
/
CI-CD.yaml
File metadata and controls
44 lines (36 loc) · 925 Bytes
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
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn run lint-css
- run: yarn run css
- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: ci-build
path: dist/
publish:
needs: ['build']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- name: Download build artifact
uses: actions/download-artifact@v7
with:
name: ci-build
path: dist/
- uses: JS-DevTools/npm-publish@v4
with:
token: ${{ secrets.NPM_TOKEN }}