-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (35 loc) · 968 Bytes
/
release.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
name: Release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
env:
NPM_PUBLISH_KEY: ${{ secrets.NPM_PUBLISH_KEY }}
steps:
- name: Setup test browser
uses: browser-actions/setup-chrome@latest
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'yarn'
- name: Install
run: yarn install --frozen-lockfile
- name: Build
run: yarn build --skip-nx-cache
- name: Lint
run: yarn lint
- name: Test
run: yarn test:ci
- run: cp README.md dist/gallery/
- name: Release
run: |
npm set //registry.npmjs.org/:_authToken $NPM_PUBLISH_KEY
cd dist/gallery
npm publish --access public
deploy-homepage:
needs: release
uses: daelmaak/ngx-gallery/.github/workflows/deploy-homepage.yml@master