-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 2.05 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Publish
on:
push:
tags:
- '*'
jobs:
publish-release:
name: Publish release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Start docker 🔧
run: docker network create proxy && docker compose -f docker-compose.yml -f .github/docker-compose.yml up -d
- name: Install the dependencies 🔧
run: docker compose exec -T -e CYPRESS_INSTALL_BINARY=0 application yarn install
- name: Build
run: docker compose exec -T application yarn build-release
- name: Upload Js to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/cookies-regulation.js
asset_name: cookies-regulation.js
tag: ${{ github.ref }}
- name: Upload Css to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/cookies-regulation.css
asset_name: cookies-regulation.css
tag: ${{ github.ref }}
publish-registry:
name: Publish registry
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Start docker 🔧
run: docker network create proxy && docker compose -f docker-compose.yml -f .github/docker-compose.yml up -d
- name: Install the dependencies 🔧
run: docker compose exec -T -e CYPRESS_INSTALL_BINARY=0 application yarn install
- name: Build
run: docker compose exec -T application yarn build
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public