-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (40 loc) · 1.07 KB
/
ci.yaml
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
name: OWM Client CI
on:
push:
branches:
- main
pull_request:
jobs:
validate:
env:
OWM_TOKEN: ${{ secrets.OWM_TOKEN}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Validate
uses: curium-rocks/actions/validate-node@main
with:
node_version: 16.x
github_token: ${{ secrets.GITHUB_TOKEN }}
sonarqube_token: ${{ secrets.SONARQUBE_KEY }}
publish:
needs: validate
environment: github-pages
permissions:
pages: write
id-token: write
contents: write
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Publish
uses: curium-rocks/actions/publish-node@main
with:
node_version: 16.x
npm_token: ${{ secrets.NODE_ACCESS_TOKEN }}
user_name: 'ci'
user_email: 'git@curium.rocks'
publish_docs: 'true'
create_release: 'true'
token: ${{ secrets.github_token }}